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

Function Y_UNIT_TEST

util/system/src_root_ut.cpp:7–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5
6Y_UNIT_TEST_SUITE(TestSourceRoot) {
7 Y_UNIT_TEST(TestStrip) {
8 // Reconstruct() converts "\" -> "/" on Windows
9 const TString path = TPathSplit(__SOURCE_FILE_IMPL__.As<TStringBuf>()).Reconstruct();
10 UNIT_ASSERT_EQUAL(path, "util" LOCSLASH_S "system" LOCSLASH_S "src_root_ut.cpp");
11 }
12
13 Y_UNIT_TEST(TestPrivateChopPrefixRoutine) {
14 static constexpr const char str[] = ":\0:\0: It's unlikely that this string has an ARCADIA_ROOT as its prefix :\0:\0:";

Callers

nothing calls this directly

Calls 4

StripRootFunction · 0.85
RootPrefixLengthFunction · 0.85
IsProperPrefixFunction · 0.85
ReconstructMethod · 0.45

Tested by

no test coverage detected