Lines Matching refs:SCL
29 auto SCL = makeSpecialCaseList(List, Error); in makeSpecialCaseList() local
30 assert(SCL); in makeSpecialCaseList()
32 return SCL; in makeSpecialCaseList()
47 std::unique_ptr<SpecialCaseList> SCL = in TEST_F() local
54 EXPECT_TRUE(SCL->inSection("src", "hello")); in TEST_F()
55 EXPECT_TRUE(SCL->inSection("src", "bye")); in TEST_F()
56 EXPECT_TRUE(SCL->inSection("src", "hi", "category")); in TEST_F()
57 EXPECT_TRUE(SCL->inSection("src", "zzzz", "category")); in TEST_F()
58 EXPECT_FALSE(SCL->inSection("src", "hi")); in TEST_F()
59 EXPECT_FALSE(SCL->inSection("fun", "hello")); in TEST_F()
60 EXPECT_FALSE(SCL->inSection("src", "hello", "category")); in TEST_F()
64 std::unique_ptr<SpecialCaseList> SCL = in TEST_F() local
66 EXPECT_FALSE(SCL->inSection("global", "foo")); in TEST_F()
67 EXPECT_FALSE(SCL->inSection("global", "bar")); in TEST_F()
68 EXPECT_TRUE(SCL->inSection("global", "foo", "init")); in TEST_F()
69 EXPECT_FALSE(SCL->inSection("global", "bar", "init")); in TEST_F()
71 SCL = makeSpecialCaseList("type:t2=init\n"); in TEST_F()
72 EXPECT_FALSE(SCL->inSection("type", "t1")); in TEST_F()
73 EXPECT_FALSE(SCL->inSection("type", "t2")); in TEST_F()
74 EXPECT_FALSE(SCL->inSection("type", "t1", "init")); in TEST_F()
75 EXPECT_TRUE(SCL->inSection("type", "t2", "init")); in TEST_F()
77 SCL = makeSpecialCaseList("src:hello=init\n"); in TEST_F()
78 EXPECT_FALSE(SCL->inSection("src", "hello")); in TEST_F()
79 EXPECT_FALSE(SCL->inSection("src", "bye")); in TEST_F()
80 EXPECT_TRUE(SCL->inSection("src", "hello", "init")); in TEST_F()
81 EXPECT_FALSE(SCL->inSection("src", "bye", "init")); in TEST_F()
85 std::unique_ptr<SpecialCaseList> SCL = makeSpecialCaseList("src:hello\n" in TEST_F() local
88 EXPECT_FALSE(SCL->inSection("src", "othello")); in TEST_F()
89 EXPECT_FALSE(SCL->inSection("fun", "tomfoolery")); in TEST_F()
90 EXPECT_FALSE(SCL->inSection("global", "bartender")); in TEST_F()
92 SCL = makeSpecialCaseList("fun:*foo*\n"); in TEST_F()
93 EXPECT_TRUE(SCL->inSection("fun", "tomfoolery")); in TEST_F()
94 EXPECT_TRUE(SCL->inSection("fun", "foobar")); in TEST_F()
115 std::unique_ptr<SpecialCaseList> SCL = makeSpecialCaseList(""); in TEST_F() local
116 EXPECT_FALSE(SCL->inSection("foo", "bar")); in TEST_F()
126 auto SCL = SpecialCaseList::createOrDie(Files); in TEST_F() local
127 EXPECT_TRUE(SCL->inSection("src", "bar")); in TEST_F()
128 EXPECT_TRUE(SCL->inSection("src", "baz")); in TEST_F()
129 EXPECT_FALSE(SCL->inSection("src", "ban")); in TEST_F()
130 EXPECT_TRUE(SCL->inSection("src", "ban", "init")); in TEST_F()
131 EXPECT_TRUE(SCL->inSection("src", "tomfoolery")); in TEST_F()
132 EXPECT_TRUE(SCL->inSection("src", "tomfoglery")); in TEST_F()