22 std::string acc =
"\n{\n";
24 acc += R
"( "value" : )" + std::to_string(value) + ",\n";
25 acc += R
"( "name" : ")" + name + "\"";
39 shambase::stream_write(stream, bl);
40 shambase::stream_write_string(stream,
name);
41 shambase::stream_write_string(stream,
comment);
48 shambase::stream_read(stream, bl);
49 shambase::stream_read_string(stream,
name);
50 shambase::stream_read_string(stream,
comment);
implementation details of the test library
std::string serialize_json()
Serialize the assertion in JSON.
std::string comment
Comment attached to the assert.
bool value
Value of the assert.
void serialize(std::basic_stringstream< byte > &stream)
Serialize the assertion in binary format.
std::string name
Name of the assert.
static TestAssert deserialize(std::basic_stringstream< byte > &reader)
DeSerialize the assertion from binary format.