| 308 | } |
| 309 | |
| 310 | void TestEmpty() { |
| 311 | TBuffer buffer; |
| 312 | { |
| 313 | TBufferOutput out(buffer); |
| 314 | TChunkedDataWriter writer(out); |
| 315 | writer.NewBlock(); |
| 316 | writer.NewBlock(); |
| 317 | writer.WriteFooter(); |
| 318 | } |
| 319 | { |
| 320 | TBlob blob = TBlob::FromBufferSingleThreaded(buffer); |
| 321 | TChunkedDataReader data(blob); |
| 322 | // printf("%d\n", (int)data.GetBlockLen(1)); |
| 323 | UNIT_ASSERT_EQUAL(0, data.GetBlockLen(0)); |
| 324 | UNIT_ASSERT_EQUAL(0, data.GetBlockLen(1)); |
| 325 | } |
| 326 | } |
| 327 | }; |
| 328 | |
| 329 | UNIT_TEST_SUITE_REGISTRATION(TChunkedDataTest); |
nothing calls this directly
no test coverage detected