Lines Matching defs:Output
200 ArrayRef<const char *> Output,
206 EXPECT_EQ(Output.size(), Actual.size());
208 if (I < Output.size()) {
209 EXPECT_STREQ(Output[I], Actual[I]);
218 const char *const Output[] = {
221 testCommandLineTokenizer(cl::TokenizeGNUCommandLine, Input, Output);
227 const char *const Output[] = { "a\\b", "c\\\\d", "e\\f g", "h\"i", "j\\\"k",
229 testCommandLineTokenizer(cl::TokenizeWindowsCommandLine, Input, Output);
234 const char *const Output[] = { "clang", "-c", "-DFOO=\"ABC\"", "x.cpp"};
235 testCommandLineTokenizer(cl::TokenizeWindowsCommandLine, Input, Output);
289 const char *const Output[] = {"clang", "-Xclang", "foo",
292 testCommandLineTokenizer(cl::TokenizeWindowsCommandLine, Input, Output,
294 testCommandLineTokenizer(cl::TokenizeGNUCommandLine, Input, Output,
300 const char *const Output[] = { "\\" };
301 testCommandLineTokenizer(cl::tokenizeConfigFile, Input, Output);
306 const char *const Output[] = { "abc" };
307 testCommandLineTokenizer(cl::tokenizeConfigFile, Input, Output);
312 const char *const Output[] = { "abc\\" };
313 testCommandLineTokenizer(cl::tokenizeConfigFile, Input, Output);
318 const char *const Output[] = { "abc123" };
319 testCommandLineTokenizer(cl::tokenizeConfigFile, Input, Output);
324 const char *const Output[] = { "abc123" };
325 testCommandLineTokenizer(cl::tokenizeConfigFile, Input, Output);
330 const char *const Output[] = { "abc" };
331 testCommandLineTokenizer(cl::tokenizeConfigFile, Input, Output);
336 const char *const Output[] = { "abc" };
337 testCommandLineTokenizer(cl::tokenizeConfigFile, Input, Output);
358 const char *const Output[] = { "abc" };
359 testCommandLineTokenizer(cl::tokenizeConfigFile, Input, Output);
364 const char *const Output[] = { "abc" };
365 testCommandLineTokenizer(cl::tokenizeConfigFile, Input, Output);
1390 std::string Output =
1395 EXPECT_EQ(Output, (" --" + Opt + "=<value> - " + HelpText + "\n"
1402 std::string Output = runTest(
1407 EXPECT_EQ(Output,
1416 std::string Output = runTest(
1421 EXPECT_EQ(Output, (" --" + Opt + " - " + HelpText + "\n"
1430 std::string Output = runTest(
1435 EXPECT_EQ(Output, (" --" + Opt + "=<value> - " + HelpText + "\n"
1443 std::string Output = runTest(
1447 EXPECT_EQ(Output,
1454 std::string Output =
1465 EXPECT_EQ(Output,
1482 std::string Output =
1486 EXPECT_EQ(Output, (" --" + Opt + " = v1 (default: v1)\n").str());
1490 std::string Output =
1495 EXPECT_EQ(Output, (" --" + Opt + " = v1 (default: )\n").str());
1499 std::string Output = runTest(cl::init(OptionValue::Val));
1501 EXPECT_EQ(Output, (" --" + Opt + " = *unknown option value*\n").str());
2211 auto Output = interceptStdout([]() { cl::PrintHelpMessage(); });
2212 EXPECT_NE(std::string::npos, Output.find("USAGE: prog [options]")) << Output;
2213 EXPECT_EQ(std::string::npos, Output.find("SUBCOMMANDS:")) << Output;
2228 auto Output = interceptStdout([]() { cl::PrintHelpMessage(); });
2230 Output.find("USAGE: prog [subcommand] [options]"))
2231 << Output;
2232 EXPECT_NE(std::string::npos, Output.find("SUBCOMMANDS:")) << Output;
2233 EXPECT_NE(std::string::npos, Output.find("sc1 - First Subcommand")) << Output;
2234 EXPECT_NE(std::string::npos, Output.find("sc2 - Second Subcommand"))
2235 << Output;
2308 auto Output = interceptStdout(
2310 EXPECT_EQ(std::string::npos, Output.find("First Category"))
2313 Output = interceptStdout(
2315 EXPECT_EQ(std::string::npos, Output.find("First Category"))