23.11
|
Abstract factory class to create test cases. More...
#include <TestCaseFactory.h>
Public Types | |
enum | Status { ACTIVE, EXPECTED_FAILURE, DISABLED } |
Test case status. More... | |
Public Member Functions | |
TestCaseFactory (std::string suite_name, std::string name, DatasetMode mode, Status status, std::string description="") | |
Constructor. More... | |
virtual | ~TestCaseFactory ()=default |
Default destructor. More... | |
std::string | name () const |
Name of the test case. More... | |
DatasetMode | mode () const |
Get the mode for which test case will be enabled. More... | |
Status | status () const |
Get the status of the test case. More... | |
virtual std::unique_ptr< TestCase > | make () const =0 |
Factory function to create the test case. More... | |
Abstract factory class to create test cases.
Definition at line 40 of file TestCaseFactory.h.
|
strong |
Test case status.
ACTIVE == Test is run and result is validated. Failure on failed validation. EXPECTED_FAILURE == Test is run and result is validated. Failure on successful validation. DISABLED == Test is not run.
Enumerator | |
---|---|
ACTIVE | |
EXPECTED_FAILURE | |
DISABLED |
Definition at line 49 of file TestCaseFactory.h.
|
inline |
Constructor.
[in] | suite_name | Name of the test suite to which the test case has been added. |
[in] | name | Name of the test case. |
[in] | mode | Datset mode of the test case. |
[in] | status | Status of the test case. |
[in] | description | Description of data arguments. |
Definition at line 134 of file TestCaseFactory.h.
|
virtualdefault |
Default destructor.
|
pure virtual |
Factory function to create the test case.
Implemented in DataTestCaseFactory< T, D >, and SimpleTestCaseFactory< T >.
|
inline |
Get the mode for which test case will be enabled.
Definition at line 152 of file TestCaseFactory.h.
Referenced by DataTestCaseFactory< T, D >::DataTestCaseFactory(), and Framework::run().
|
inline |
Name of the test case.
Definition at line 140 of file TestCaseFactory.h.
Referenced by Framework::run().
|
inline |
Get the status of the test case.
Definition at line 157 of file TestCaseFactory.h.
Referenced by DataTestCaseFactory< T, D >::DataTestCaseFactory(), and Framework::run().