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

Method TestFlush

util/system/file_ut.cpp:219–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219void TFileTest::TestFlush() {
220 TTempFile tmp("tmp");
221
222 {
223 TFile f(tmp.Name(), OpenAlways | WrOnly);
224 f.Flush();
225 f.FlushData();
226 f.Close();
227
228 UNIT_ASSERT_EXCEPTION(f.Flush(), TFileError);
229 UNIT_ASSERT_EXCEPTION(f.FlushData(), TFileError);
230 }
231}
232
233void TFileTest::TestFlushSpecialFile() {
234#ifdef _unix_

Callers

nothing calls this directly

Calls 4

NameMethod · 0.45
FlushMethod · 0.45
FlushDataMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected