MCPcopy Create free account
hub / github.com/catboost/catboost / TestEmpty

Method TestEmpty

library/cpp/on_disk/chunks/chunks_ut.cpp:310–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
329UNIT_TEST_SUITE_REGISTRATION(TChunkedDataTest);

Callers

nothing calls this directly

Calls 3

GetBlockLenMethod · 0.80
NewBlockMethod · 0.45
WriteFooterMethod · 0.45

Tested by

no test coverage detected