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

Method TestGenericRead

util/stream/ios_ut.cpp:121–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void TStreamsTest::TestGenericRead() {
122 TString s("1234567890");
123 TStringInput si(s);
124 char buf[1024];
125
126 UNIT_ASSERT_EQUAL(si.Read(buf, 6), 6);
127 UNIT_ASSERT_EQUAL(memcmp(buf, "123456", 6), 0);
128 UNIT_ASSERT_EQUAL(si.Read(buf, 6), 4);
129 UNIT_ASSERT_EQUAL(memcmp(buf, "7890", 4), 0);
130}
131
132void TStreamsTest::TestGenericWrite() {
133 TString s;

Callers

nothing calls this directly

Calls 2

memcmpFunction · 0.85
ReadMethod · 0.45

Tested by

no test coverage detected