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

Method TestReWrite

util/system/file_ut.cpp:78–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 }
77
78 inline void TestReWrite() {
79 TTempFile tmp("tmp");
80
81 {
82 TFile f(tmp.Name(), OpenAlways | WrOnly);
83
84 f.Write("12345678", 8);
85 }
86
87 {
88 TFile f(tmp.Name(), OpenAlways | WrOnly);
89
90 f.Write("6789", 4);
91 }
92
93 UNIT_ASSERT_EQUAL(TUnbufferedFileInput(tmp.Name()).ReadAll(), "67895678");
94 }
95
96 inline void TestResize() {
97 TTempFile tmp("tmp");

Callers

nothing calls this directly

Calls 4

ReadAllMethod · 0.80
NameMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected