| 53 | } // namespace |
| 54 | |
| 55 | UNIT_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 | |
| 69 | UNIT_TEST(WriteSerialWithWriter) |
| 70 | { |
nothing calls this directly
no test coverage detected