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

Function TEST

library/cpp/yt/memory/unittests/safe_memory_reader_ut.cpp:11–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9////////////////////////////////////////////////////////////////////////////////
10
11TEST(TSafeMemoryReaderTest, Simple)
12{
13 TSafeMemoryReader reader;
14
15 int i = 1;
16
17 int value;
18 ASSERT_TRUE(reader.Read(&i, &value));
19 ASSERT_EQ(value, 1);
20
21 ASSERT_FALSE(reader.Read(reinterpret_cast<void*>(0x1ee3beef), &value));
22}
23
24////////////////////////////////////////////////////////////////////////////////
25

Callers

nothing calls this directly

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected