MCPcopy Create free account
hub / github.com/comaps/comaps / UNIT_TEST

Function UNIT_TEST

libs/coding/coding_tests/var_serial_vector_test.cpp:55–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53} // namespace
54
55UNIT_TEST(WriteSerial)
56{
57 vector<string> elements;
58 elements.push_back("a");
59 elements.push_back("bcd");
60 elements.push_back("ef");
61
62 string output;
63 PushBackByteSink<string> sink(output);
64 WriteVarSerialVector(elements.begin(), elements.end(), sink);
65
66 TEST_EQUAL(ToHex(output), kHexSerial, ());
67}
68
69UNIT_TEST(WriteSerialWithWriter)
70{

Callers

nothing calls this directly

Calls 10

WriteVarSerialVectorFunction · 0.85
ToHexFunction · 0.85
FromHexFunction · 0.85
FinishRecordMethod · 0.80
push_backMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
WriteMethod · 0.45
sizeMethod · 0.45
ReadMethod · 0.45

Tested by

no test coverage detected