• Home
  • Raw
  • Download

Lines Matching refs:AL

70   InputArgList AL = T.ParseArgs(Args, MAI, MAC);  in TEST()  local
73 EXPECT_TRUE(AL.hasArg(OPT_A)); in TEST()
74 EXPECT_TRUE(AL.hasArg(OPT_B)); in TEST()
75 EXPECT_TRUE(AL.hasArg(OPT_C)); in TEST()
76 EXPECT_TRUE(AL.hasArg(OPT_D)); in TEST()
77 EXPECT_TRUE(AL.hasArg(OPT_E)); in TEST()
78 EXPECT_TRUE(AL.hasArg(OPT_F)); in TEST()
79 EXPECT_TRUE(AL.hasArg(OPT_G)); in TEST()
82 EXPECT_EQ("hi", AL.getLastArgValue(OPT_B)); in TEST()
83 EXPECT_EQ("bye", AL.getLastArgValue(OPT_C)); in TEST()
84 EXPECT_EQ("adena", AL.getLastArgValue(OPT_D)); in TEST()
85 std::vector<std::string> Es = AL.getAllArgValues(OPT_E); in TEST()
88 EXPECT_EQ("42", AL.getLastArgValue(OPT_F)); in TEST()
89 std::vector<std::string> Gs = AL.getAllArgValues(OPT_G); in TEST()
100 arg_iterator Cs = AL.filtered_begin(OPT_C); in TEST()
101 ASSERT_NE(AL.filtered_end(), Cs); in TEST()
104 (*Cs)->render(AL, ASL); in TEST()
115 InputArgList AL = T.ParseArgs(Args, MAI, MAC, in TEST() local
118 EXPECT_TRUE(AL.hasArg(OPT_A)); in TEST()
119 EXPECT_TRUE(AL.hasArg(OPT_C)); in TEST()
120 EXPECT_FALSE(AL.hasArg(OPT_SLASH_C)); in TEST()
123 AL = T.ParseArgs(Args, MAI, MAC, in TEST()
126 EXPECT_TRUE(AL.hasArg(OPT_B)); in TEST()
127 EXPECT_FALSE(AL.hasArg(OPT_C)); in TEST()
128 EXPECT_TRUE(AL.hasArg(OPT_SLASH_C)); in TEST()
131 AL = T.ParseArgs(NewArgs, MAI, MAC); in TEST()
132 EXPECT_TRUE(AL.hasArg(OPT_SLASH_C)); in TEST()
133 EXPECT_TRUE(AL.hasArg(OPT_C)); in TEST()
134 EXPECT_EQ("foo", AL.getLastArgValue(OPT_SLASH_C)); in TEST()
135 EXPECT_EQ("bar", AL.getLastArgValue(OPT_C)); in TEST()
143 InputArgList AL = T.ParseArgs(MyArgs, MAI, MAC); in TEST() local
144 EXPECT_TRUE(AL.hasArg(OPT_H)); in TEST()
152 InputArgList AL = T.ParseArgs(MyArgs, MAI, MAC); in TEST() local
153 EXPECT_TRUE(AL.hasArg(OPT_B)); in TEST()
154 EXPECT_EQ("foo", AL.getAllArgValues(OPT_B)[0]); in TEST()
155 EXPECT_EQ("bar", AL.getAllArgValues(OPT_B)[1]); in TEST()
163 InputArgList AL = T.ParseArgs(MyArgs, MAI, MAC); in TEST() local
164 EXPECT_TRUE(AL.hasArg(OPT_A)); in TEST()
165 EXPECT_TRUE(AL.hasArg(OPT_B)); in TEST()
173 InputArgList AL = T.ParseArgs(MyArgs, MAI, MAC); in TEST() local
174 EXPECT_FALSE(AL.hasArg(OPT_A)); in TEST()
175 EXPECT_FALSE(AL.hasArg(OPT_B)); in TEST()
183 InputArgList AL = T.ParseArgs(MyArgs, MAI, MAC); in TEST() local
184 EXPECT_TRUE(AL.hasArg(OPT_A)); in TEST()
185 EXPECT_TRUE(AL.hasArg(OPT_Slurp)); in TEST()
186 EXPECT_EQ(0U, AL.getAllArgValues(OPT_Slurp).size()); in TEST()
194 InputArgList AL = T.ParseArgs(MyArgs, MAI, MAC); in TEST() local
195 EXPECT_EQ(AL.size(), 2U); in TEST()
196 EXPECT_TRUE(AL.hasArg(OPT_A)); in TEST()
197 EXPECT_FALSE(AL.hasArg(OPT_B)); in TEST()
198 EXPECT_TRUE(AL.hasArg(OPT_Slurp)); in TEST()
199 EXPECT_EQ(3U, AL.getAllArgValues(OPT_Slurp).size()); in TEST()
200 EXPECT_EQ("-B", AL.getAllArgValues(OPT_Slurp)[0]); in TEST()
201 EXPECT_EQ("--", AL.getAllArgValues(OPT_Slurp)[1]); in TEST()
202 EXPECT_EQ("foo", AL.getAllArgValues(OPT_Slurp)[2]); in TEST()
210 InputArgList AL = T.ParseArgs(MyArgs, MAI, MAC); in TEST() local
211 EXPECT_TRUE(AL.hasArg(OPT_A)); in TEST()
212 EXPECT_TRUE(AL.hasArg(OPT_SlurpJoined)); in TEST()
213 EXPECT_EQ(AL.getAllArgValues(OPT_SlurpJoined).size(), 0U); in TEST()
221 InputArgList AL = T.ParseArgs(MyArgs, MAI, MAC); in TEST() local
222 EXPECT_TRUE(AL.hasArg(OPT_A)); in TEST()
223 EXPECT_TRUE(AL.hasArg(OPT_SlurpJoined)); in TEST()
224 EXPECT_EQ(AL.getAllArgValues(OPT_SlurpJoined).size(), 1U); in TEST()
225 EXPECT_EQ(AL.getAllArgValues(OPT_SlurpJoined)[0], "foo"); in TEST()
233 InputArgList AL = T.ParseArgs(MyArgs, MAI, MAC); in TEST() local
234 EXPECT_TRUE(AL.hasArg(OPT_A)); in TEST()
235 EXPECT_TRUE(AL.hasArg(OPT_SlurpJoined)); in TEST()
236 EXPECT_EQ(3U, AL.getAllArgValues(OPT_SlurpJoined).size()); in TEST()
237 EXPECT_EQ("foo", AL.getAllArgValues(OPT_SlurpJoined)[0]); in TEST()
238 EXPECT_EQ("bar", AL.getAllArgValues(OPT_SlurpJoined)[1]); in TEST()
239 EXPECT_EQ("baz", AL.getAllArgValues(OPT_SlurpJoined)[2]); in TEST()
247 InputArgList AL = T.ParseArgs(MyArgs, MAI, MAC); in TEST() local
248 EXPECT_TRUE(AL.hasArg(OPT_A)); in TEST()
249 EXPECT_TRUE(AL.hasArg(OPT_SlurpJoined)); in TEST()
250 EXPECT_EQ(3U, AL.getAllArgValues(OPT_SlurpJoined).size()); in TEST()
251 EXPECT_EQ("foo", AL.getAllArgValues(OPT_SlurpJoined)[0]); in TEST()
252 EXPECT_EQ("bar", AL.getAllArgValues(OPT_SlurpJoined)[1]); in TEST()
253 EXPECT_EQ("baz", AL.getAllArgValues(OPT_SlurpJoined)[2]); in TEST()
262 InputArgList AL = T.ParseArgs(MyArgs, MAI, MAC); in TEST() local
263 EXPECT_EQ(AL.size(), 1U); in TEST()
264 EXPECT_TRUE(AL.hasArg(OPT_B)); in TEST()
265 EXPECT_EQ(1U, AL.getAllArgValues(OPT_B).size()); in TEST()
266 EXPECT_EQ("", AL.getAllArgValues(OPT_B)[0]); in TEST()