Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ScalFMM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
solverstack
ScalFMM
Commits
c63d7ac2
Commit
c63d7ac2
authored
Jan 25, 2016
by
Quentin Khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Abstract test base for adaptive FMM
parent
a3dc4cf7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
Tests/noDist/Adaptive/test_Abstract.hpp
Tests/noDist/Adaptive/test_Abstract.hpp
+25
-0
No files found.
Tests/noDist/Adaptive/test_Abstract.hpp
0 → 100644
View file @
c63d7ac2
#ifndef SCALFMM_TEST_ABSTRACT_HPP_
#define SCALFMM_TEST_ABSTRACT_HPP_
#include <type_traits>
#include <iostream>
#define RUN(test_function_name) \
std::cout << #test_function_name << std::endl; \
run_test(& std::remove_reference<decltype((*this))>::type :: test_function_name);
template
<
class
T
>
struct
test_Abstract
{
virtual
void
set_up
()
{}
virtual
void
tear_down
()
{}
virtual
void
run_all
()
=
0
;
virtual
void
run_test
(
void
(
T
::*
test_function
)())
{
this
->
set_up
();
(
dynamic_cast
<
T
*>
(
this
)
->*
test_function
)();
this
->
tear_down
();
}
};
#endif
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