Lines Matching defs:SCL
27 SpecialCaseList *SCL = makeSpecialCaseList(List, Error);
28 assert(SCL);
30 return SCL;
35 std::unique_ptr<SpecialCaseList> SCL(
42 EXPECT_TRUE(SCL->inSection("src", "hello"));
43 EXPECT_TRUE(SCL->inSection("src", "bye"));
44 EXPECT_TRUE(SCL->inSection("src", "hi", "category"));
45 EXPECT_TRUE(SCL->inSection("src", "zzzz", "category"));
46 EXPECT_FALSE(SCL->inSection("src", "hi"));
47 EXPECT_FALSE(SCL->inSection("fun", "hello"));
48 EXPECT_FALSE(SCL->inSection("src", "hello", "category"));
52 std::unique_ptr<SpecialCaseList> SCL(
54 EXPECT_FALSE(SCL->inSection("global", "foo"));
55 EXPECT_FALSE(SCL->inSection("global", "bar"));
56 EXPECT_TRUE(SCL->inSection("global", "foo", "init"));
57 EXPECT_FALSE(SCL->inSection("global", "bar", "init"));
59 SCL.reset(makeSpecialCaseList("global-init:foo\n"));
60 EXPECT_FALSE(SCL->inSection("global", "foo"));
61 EXPECT_FALSE(SCL->inSection("global", "bar"));
62 EXPECT_TRUE(SCL->inSection("global", "foo", "init"));
63 EXPECT_FALSE(SCL->inSection("global", "bar", "init"));
65 SCL.reset(makeSpecialCaseList("type:t2=init\n"));
66 EXPECT_FALSE(SCL->inSection("type", "t1"));
67 EXPECT_FALSE(SCL->inSection("type", "t2"));
68 EXPECT_FALSE(SCL->inSection("type", "t1", "init"));
69 EXPECT_TRUE(SCL->inSection("type", "t2", "init"));
71 SCL.reset(makeSpecialCaseList("global-init-type:t2\n"));
72 EXPECT_FALSE(SCL->inSection("type", "t1"));
73 EXPECT_FALSE(SCL->inSection("type", "t2"));
74 EXPECT_FALSE(SCL->inSection("type", "t1", "init"));
75 EXPECT_TRUE(SCL->inSection("type", "t2", "init"));
77 SCL.reset(makeSpecialCaseList("src:hello=init\n"));
78 EXPECT_FALSE(SCL->inSection("src", "hello"));
79 EXPECT_FALSE(SCL->inSection("src", "bye"));
80 EXPECT_TRUE(SCL->inSection("src", "hello", "init"));
81 EXPECT_FALSE(SCL->inSection("src", "bye", "init"));
83 SCL.reset(makeSpecialCaseList("global-init-src:hello\n"));
84 EXPECT_FALSE(SCL->inSection("src", "hello"));
85 EXPECT_FALSE(SCL->inSection("src", "bye"));
86 EXPECT_TRUE(SCL->inSection("src", "hello", "init"));
87 EXPECT_FALSE(SCL->inSection("src", "bye", "init"));
91 std::unique_ptr<SpecialCaseList> SCL(makeSpecialCaseList("src:hello\n"
94 EXPECT_FALSE(SCL->inSection("src", "othello"));
95 EXPECT_FALSE(SCL->inSection("fun", "tomfoolery"));
96 EXPECT_FALSE(SCL->inSection("global", "bartender"));
98 SCL.reset(makeSpecialCaseList("fun:*foo*\n"));
99 EXPECT_TRUE(SCL->inSection("fun", "tomfoolery"));
100 EXPECT_TRUE(SCL->inSection("fun", "foobar"));
120 std::unique_ptr<SpecialCaseList> SCL(makeSpecialCaseList(""));
121 EXPECT_FALSE(SCL->inSection("foo", "bar"));