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::TestAssert Struct Reference

A test assertion. More...

#include <shamtest/details/TestAssert.hpp>

+ Collaboration diagram for shamtest::details::TestAssert:

Public Member Functions

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 TestAssert deserialize (std::basic_stringstream< byte > &reader)
 DeSerialize the assertion from binary format.
 

Public Attributes

bool value
 Value of the assert.
 
std::string name
 Name of the assert.
 
std::string comment
 Comment attached to the assert.
 

Detailed Description

A test assertion.

Definition at line 24 of file TestAssert.hpp.

Member Function Documentation

◆ deserialize()

TestAssert TestAssert::deserialize ( std::basic_stringstream< byte > &  reader)
static

DeSerialize the assertion from binary format.

Definition at line 44 of file TestAssert.cpp.

◆ serialize()

void TestAssert::serialize ( std::basic_stringstream< byte > &  stream)

Serialize the assertion in binary format.

Definition at line 37 of file TestAssert.cpp.

◆ serialize_json()

std::string shamtest::details::TestAssert::serialize_json ( )

Serialize the assertion in JSON.

Definition at line 21 of file TestAssert.cpp.

Member Data Documentation

◆ comment

std::string shamtest::details::TestAssert::comment

Comment attached to the assert.

Definition at line 27 of file TestAssert.hpp.

◆ name

std::string shamtest::details::TestAssert::name

Name of the assert.

Definition at line 26 of file TestAssert.hpp.

◆ value

bool shamtest::details::TestAssert::value

Value of the assert.

Definition at line 25 of file TestAssert.hpp.


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