23.08
|
Class to store results of a test. More...
#include <TestResult.h>
Public Types | |
enum | Status { NOT_RUN, SUCCESS, EXPECTED_FAILURE, FAILED, CRASHED, DISABLED } |
Execution status of a test. More... | |
Public Member Functions | |
TestResult ()=default | |
Default constructor. More... | |
TestResult (Status status) | |
Initialise the result with a status. More... | |
TestResult (Status status, const Profiler::MeasurementsMap &measurements) | |
Initialise the result with a status and profiling information. More... | |
Data Fields | |
Status | status { Status::NOT_RUN } |
Execution status. More... | |
Profiler::MeasurementsMap | measurements {} |
Profiling information. More... | |
std::string | header_data {} |
Test header data. More... | |
Class to store results of a test.
Currently the execution status and profiling information are stored.
Definition at line 39 of file TestResult.h.
|
strong |
Execution status of a test.
Enumerator | |
---|---|
NOT_RUN | |
SUCCESS | |
EXPECTED_FAILURE | |
FAILED | |
CRASHED | |
DISABLED |
Definition at line 42 of file TestResult.h.
|
default |
Default constructor.
|
inline |
Initialise the result with a status.
[in] | status | Execution status. |
Definition at line 59 of file TestResult.h.
References TestResult::status.
|
inline |
Initialise the result with a status and profiling information.
[in] | status | Execution status. |
[in] | measurements | Profiling information. |
Definition at line 69 of file TestResult.h.
References TestResult::status.
std::string header_data {} |
Test header data.
Definition at line 76 of file TestResult.h.
Profiler::MeasurementsMap measurements {} |
Profiling information.
Definition at line 75 of file TestResult.h.
Status status { Status::NOT_RUN } |
Execution status.
Definition at line 74 of file TestResult.h.
Referenced by TestResult::TestResult().