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

Function Y_UNIT_TEST

util/system/tempfile_ut.cpp:12–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11Y_UNIT_TEST_SUITE(TTempFileHandle) {
12 Y_UNIT_TEST(Create) {
13 TString path;
14 {
15 TTempFileHandle tmp;
16 path = tmp.Name();
17 tmp.Write("hello world\n", 12);
18 tmp.FlushData();
19 UNIT_ASSERT_STRINGS_EQUAL(TUnbufferedFileInput(tmp.Name()).ReadAll(), "hello world\n");
20 }
21 UNIT_ASSERT(!NFs::Exists(path));
22 }
23
24 Y_UNIT_TEST(InCurrentDir) {
25#ifndef _win32_

Callers

nothing calls this directly

Calls 15

MakeTempNameFunction · 0.85
Y_UNUSEDFunction · 0.85
ReadAllMethod · 0.80
ListNamesMethod · 0.80
TFsPathClass · 0.70
any_ofFunction · 0.50
NameMethod · 0.45
WriteMethod · 0.45
FlushDataMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected