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

Function Y_UNIT_TEST

util/generic/mem_copy_ut.cpp:24–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23Y_UNIT_TEST_SUITE(TestMemCopy) {
24 Y_UNIT_TEST(Test1) {
25 char buf[] = "123";
26 char buf1[sizeof(buf)];
27
28 UNIT_ASSERT_EQUAL(MemCopy(buf1, buf, sizeof(buf)), buf1);
29
30 for (size_t i = 0; i < sizeof(buf); ++i) {
31 UNIT_ASSERT_VALUES_EQUAL(buf[i], buf1[i]);
32 }
33 }
34
35 static int x = 0;
36

Callers

nothing calls this directly

Calls 3

MemCopyFunction · 0.85
FillXFunction · 0.85
MemMoveFunction · 0.85

Tested by

no test coverage detected