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

Method TestOpenSync

util/system/file_ut.cpp:157–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157void TFileTest::TestOpenSync() {
158 TFile f1("f1.txt", CreateNew | Sync);
159 UNIT_ASSERT(f1.IsOpen());
160 f1.Close();
161 UNIT_ASSERT(!f1.IsOpen());
162 UNIT_ASSERT(unlink("f1.txt") == 0);
163}
164
165void TFileTest::TestRW() {
166 TFile f1("f1.txt", CreateNew);

Callers

nothing calls this directly

Calls 2

IsOpenMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected