Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
shamtest::details::TestResult Struct Reference

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
 

Detailed Description

Result of a test.

Definition at line 34 of file TestResult.hpp.

Constructor & Destructor Documentation

◆ TestResult() [1/2]

shamtest::details::TestResult::TestResult ( const TestType type,
std::string  name,
const u32 world_rank 
)
inline

Constructructor.

Parameters
type
name
world_rank

Definition at line 49 of file TestResult.hpp.

◆ TestResult() [2/2]

shamtest::details::TestResult::TestResult ( TestType  type,
std::string  name,
u32  world_rank,
TestAssertList &&  asserts,
TestDataList &&  test_data,
std::string  tex_output 
)
inline

CTOR of a test result.

Definition at line 53 of file TestResult.hpp.

Member Function Documentation

◆ deserialize()

TestResult shamtest::details::TestResult::deserialize ( std::basic_stringstream< byte > &  reader)
static

DeSerialize the assertion from binary format.

Definition at line 75 of file TestResult.cpp.

+ Here is the call graph for this function:

◆ serialize()

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:

◆ serialize_json()

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:

Member Data Documentation

◆ asserts

TestAssertList shamtest::details::TestResult::asserts

List of the asserts performed within the test

Definition at line 38 of file TestResult.hpp.

◆ name

std::string shamtest::details::TestResult::name

The name of the test

Definition at line 36 of file TestResult.hpp.

◆ test_data

TestDataList shamtest::details::TestResult::test_data

Data returned by the test

Definition at line 39 of file TestResult.hpp.

◆ tex_output

std::string shamtest::details::TestResult::tex_output

Tex output of the test

Definition at line 40 of file TestResult.hpp.

◆ type

TestType shamtest::details::TestResult::type

The type of the test

Definition at line 35 of file TestResult.hpp.

◆ world_rank

u32 shamtest::details::TestResult::world_rank

MPI rank that performed the test

Definition at line 37 of file TestResult.hpp.


The documentation for this struct was generated from the following files: