aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/global/unittests/global_variable/missing_module_ut/main.cpp
blob: 355bb64d7882f74c24af6007de6035706df45485 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <library/cpp/testing/gtest/gtest.h>

#include <library/cpp/yt/global/access.h>

#include <library/cpp/yt/global/mock_modules/module1_public/test_tag.h>

namespace NYT {
namespace {

////////////////////////////////////////////////////////////////////////////////

// NB: Module containing global variable definition is not
// included in peerdirs. We expect it to be invisible from
// here.
TEST(TGlobalVariableTest, MissingModule)
{
    EXPECT_FALSE(NGlobal::GetErasedVariable(TestTag1));
}

////////////////////////////////////////////////////////////////////////////////

} // namespace
} // namespace NYT