8 #ifndef META_OCEAN_TEST_TESTBASE_TEST_SCOPED_FUNCTION_H
9 #define META_OCEAN_TEST_TESTBASE_TEST_SCOPED_FUNCTION_H
48 inline void invokeFunction();
54 inline size_t number()
const;
82 static bool test(
const double testDuration);
Helper class allowing to determine whether a function was invoked or not.
Definition: TestScopedFunction.h:37
size_t number() const
Returns the number of times the function has been invoked.
Definition: TestScopedFunction.h:96
Object & operator=(const Object &)=delete
Disabled assign operator.
Object()=default
Default constructor.
size_t number_
The number of times the function has been invoked.
Definition: TestScopedFunction.h:72
void invokeFunction()
Invokes a function.
Definition: TestScopedFunction.h:91
Object(const Object &)=delete
Disabled copy constructor.
This class implement a test for the TestScopedFunction class.
Definition: TestScopedFunction.h:30
static bool test(const double testDuration)
Tests the ScopedFunction class.
static bool testRelease()
Tests the release functionality.
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15