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

Method TTestDirectory

util/folder/path_ut.cpp:41–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 };
40
41 TTestDirectory::TTestDirectory(const TString& name) {
42 Y_ABORT_UNLESS(name.length() > 0, "have to specify name");
43 Y_ABORT_UNLESS(name.find('.') == TString::npos, "must be simple name");
44 Y_ABORT_UNLESS(name.find('/') == TString::npos, "must be simple name");
45 Y_ABORT_UNLESS(name.find('\\') == TString::npos, "must be simple name");
46 Path_ = TFsPath(name);
47
48 Path_.ForceDelete();
49 Path_.MkDir();
50 }
51
52 TTestDirectory::~TTestDirectory() {
53 Path_.ForceDelete();

Callers

nothing calls this directly

Calls 4

MkDirMethod · 0.80
TFsPathClass · 0.70
lengthMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected