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

Function Y_UNIT_TEST

util/system/shmat_ut.cpp:6–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5Y_UNIT_TEST_SUITE(TTestSharedMemory) {
6 Y_UNIT_TEST(TestInProc) {
7 TSharedMemory m1;
8 TSharedMemory m2;
9
10 UNIT_ASSERT(m1.Create(128));
11 UNIT_ASSERT(m2.Open(m1.GetId(), m1.GetSize()));
12
13 *(ui32*)m1.GetPtr() = 123;
14
15 UNIT_ASSERT_VALUES_EQUAL(*(ui32*)m2.GetPtr(), 123);
16 }
17} // Y_UNIT_TEST_SUITE(TTestSharedMemory)

Callers

nothing calls this directly

Calls 5

CreateMethod · 0.45
OpenMethod · 0.45
GetIdMethod · 0.45
GetSizeMethod · 0.45
GetPtrMethod · 0.45

Tested by

no test coverage detected