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

Function Y_UNIT_TEST

util/system/pipe_ut.cpp:6–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5Y_UNIT_TEST_SUITE(TPipeTest) {
6 Y_UNIT_TEST(TestPipe) {
7 TPipe r;
8 TPipe w;
9 TPipe::Pipe(r, w);
10 char c = 'a';
11 UNIT_ASSERT(1 == w.Write(&c, 1));
12 UNIT_ASSERT(1 == r.Read(&c, 1));
13 UNIT_ASSERT_VALUES_EQUAL('a', c);
14 }
15} // Y_UNIT_TEST_SUITE(TPipeTest)

Callers

nothing calls this directly

Calls 2

WriteMethod · 0.45
ReadMethod · 0.45

Tested by

no test coverage detected