Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
af3c5ab1
Commit
af3c5ab1
authored
Nov 07, 2018
by
Paul
Browse files
Fix clang tidy warnings
parent
974098b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
test/include/test.hpp
test/include/test.hpp
+3
-2
No files found.
test/include/test.hpp
View file @
af3c5ab1
...
@@ -194,10 +194,11 @@ inline void add_test_case(std::string name, std::function<void()> f)
...
@@ -194,10 +194,11 @@ inline void add_test_case(std::string name, std::function<void()> f)
struct
auto_register
struct
auto_register
{
{
auto_register
(
std
::
string
name
,
std
::
function
<
void
()
>
f
)
{
add_test_case
(
name
,
f
);
}
template
<
class
F
>
auto_register
(
const
char
*
name
,
F
f
)
noexcept
{
add_test_case
(
name
,
f
);
}
};
};
inline
void
run_test_case
(
std
::
string
name
,
std
::
function
<
void
()
>
f
)
inline
void
run_test_case
(
const
std
::
string
&
name
,
const
std
::
function
<
void
()
>
&
f
)
{
{
std
::
cout
<<
"[ RUN ] "
<<
name
<<
std
::
endl
;
std
::
cout
<<
"[ RUN ] "
<<
name
<<
std
::
endl
;
f
();
f
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment