![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Result of a test. More...
#include <shamtest/details/TestResult.hpp>
Collaboration diagram for shamtest::details::TestResult:Public Member Functions | |
| TestResult (const TestType &type, std::string name, const u32 &world_rank) | |
| Constructructor. | |
| TestResult (TestType type, std::string name, u32 world_rank, TestAssertList &&asserts, TestDataList &&test_data, std::string tex_output) | |
| CTOR of a test result. | |
| std::string | serialize_json () |
| Serialize the assertion in JSON. | |
| void | serialize (std::basic_stringstream< byte > &stream) |
| Serialize the assertion in binary format. | |
Static Public Member Functions | |
| static TestResult | deserialize (std::basic_stringstream< byte > &reader) |
| DeSerialize the assertion from binary format. | |
Public Attributes | |
| TestType | type |
| std::string | name |
| u32 | world_rank |
| TestAssertList | asserts |
| TestDataList | test_data |
| std::string | tex_output |
Result of a test.
Definition at line 34 of file TestResult.hpp.
|
inline |
CTOR of a test result.
Definition at line 53 of file TestResult.hpp.
|
static |
DeSerialize the assertion from binary format.
Definition at line 75 of file TestResult.cpp.
Here is the call graph for this function:| void shamtest::details::TestResult::serialize | ( | std::basic_stringstream< byte > & | stream | ) |
Serialize the assertion in binary format.
Definition at line 59 of file TestResult.cpp.
Here is the call graph for this function:| std::string shamtest::details::TestResult::serialize_json | ( | ) |
Serialize the assertion in JSON.
Definition at line 28 of file TestResult.cpp.
Here is the call graph for this function:| TestAssertList shamtest::details::TestResult::asserts |
List of the asserts performed within the test
Definition at line 38 of file TestResult.hpp.
| std::string shamtest::details::TestResult::name |
The name of the test
Definition at line 36 of file TestResult.hpp.
| TestDataList shamtest::details::TestResult::test_data |
Data returned by the test
Definition at line 39 of file TestResult.hpp.
| std::string shamtest::details::TestResult::tex_output |
Tex output of the test
Definition at line 40 of file TestResult.hpp.
| TestType shamtest::details::TestResult::type |
The type of the test
Definition at line 35 of file TestResult.hpp.
| u32 shamtest::details::TestResult::world_rank |
MPI rank that performed the test
Definition at line 37 of file TestResult.hpp.