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

Method TestMoveCtor

util/memory/tempbuf_ut.cpp:68–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void TTempBufTest::TestMoveCtor() {
69 TTempBuf src;
70 UNIT_ASSERT(!src.IsNull());
71
72 src.Proceed(10);
73
74 TTempBuf dst(std::move(src));
75
76 UNIT_ASSERT(src.IsNull());
77 UNIT_ASSERT(!dst.IsNull());
78 UNIT_ASSERT_EQUAL(dst.Filled(), 10);
79}
80
81void TTempBufTest::TestProceed() {
82 TTempBuf src;

Callers

nothing calls this directly

Calls 4

moveFunction · 0.50
IsNullMethod · 0.45
ProceedMethod · 0.45
FilledMethod · 0.45

Tested by

no test coverage detected