25 std::string acc =
"\n[\n";
43 std::vector<TestAssert> tmp;
45 return {std::move(tmp)};
std::uint32_t u32
32 bit unsigned integer
void stream_read_vector(std::basic_stringstream< byte > &stream, std::vector< T > &vec)
read a vector from the bytestream Note : this appends read objects to the vector without resetting it
std::string increase_indent(std::string in, std::string delim="\n ")
Increase indentation of a string.
void stream_write_vector(std::basic_stringstream< byte > &stream, std::vector< T > &vec)
write the vector into the bytestream
implementation details of the test library
Class to hold the list of assertion related to a test.
static TestAssertList deserialize(std::basic_stringstream< byte > &reader)
DeSerialize the assertion from binary format.
void serialize(std::basic_stringstream< byte > &stream)
Serialize the assertion in binary format.
std::string serialize_json()
Serialize the assertion in JSON.
std::vector< TestAssert > asserts
List of assertion held by the class.