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

Function TEST

library/cpp/testing/common/ut/env_ut.cpp:12–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11
12TEST(Runtime, ArcadiaSourceRoot) {
13 NTesting::TScopedEnvironment contextGuard("YA_TEST_CONTEXT_FILE", ""); // remove context filename
14 {
15 auto tmpDir = ::GetSystemTempDir();
16 NTesting::TScopedEnvironment guard("ARCADIA_SOURCE_ROOT", tmpDir);
17 Singleton<NPrivate::TTestEnv>()->ReInitialize();
18 EXPECT_EQ(tmpDir, ArcadiaSourceRoot());
19 }
20 {
21 NTesting::TScopedEnvironment guard("ARCADIA_SOURCE_ROOT", "");
22 Singleton<NPrivate::TTestEnv>()->ReInitialize();
23 EXPECT_FALSE(ArcadiaSourceRoot().empty());
24 }
25}
26
27TEST(Runtime, BuildRoot) {
28 NTesting::TScopedEnvironment contextGuard("YA_TEST_CONTEXT_FILE", ""); // remove context filename

Callers

nothing calls this directly

Calls 15

GetSystemTempDirFunction · 0.85
ArcadiaSourceRootFunction · 0.85
BuildRootFunction · 0.85
BinaryPathFunction · 0.85
GetWorkPathFunction · 0.85
GetOutputPathFunction · 0.85
ReInitializeContextFunction · 0.85
WatchProcessCoreFunction · 0.85
StopProcessCoreWatchingFunction · 0.85
ReInitializeMethod · 0.80
AddTestParamMethod · 0.80
ReadAllMethod · 0.80

Tested by

no test coverage detected