Lines Matching refs:ErrorMessage
28 std::string ErrorMessage; in expectFailure() local
30 JSONCompilationDatabase::loadFromBuffer(JSONDatabase, ErrorMessage, in expectFailure()
56 std::string &ErrorMessage, in getAllFiles() argument
59 JSONCompilationDatabase::loadFromBuffer(JSONDatabase, ErrorMessage, in getAllFiles()
62 ADD_FAILURE() << ErrorMessage; in getAllFiles()
70 std::string &ErrorMessage) { in getAllCompileCommands() argument
72 JSONCompilationDatabase::loadFromBuffer(JSONDatabase, ErrorMessage, in getAllCompileCommands()
75 ADD_FAILURE() << ErrorMessage; in getAllCompileCommands()
82 std::string ErrorMessage; in TEST() local
84 getAllFiles("[]", ErrorMessage, JSONCommandLineSyntax::Gnu)) in TEST()
85 << ErrorMessage; in TEST()
105 ErrorMessage, JSONCommandLineSyntax::Gnu)) in TEST()
106 << ErrorMessage; in TEST()
110 std::string ErrorMessage; in TEST() local
112 0u, getAllCompileCommands(JSONCommandLineSyntax::Gnu, "[]", ErrorMessage) in TEST()
114 << ErrorMessage; in TEST()
137 ErrorMessage); in TEST()
138 EXPECT_EQ(2U, Commands.size()) << ErrorMessage; in TEST()
139 EXPECT_EQ(Directory1, Commands[0].Directory) << ErrorMessage; in TEST()
140 EXPECT_EQ(FileName1, Commands[0].Filename) << ErrorMessage; in TEST()
141 EXPECT_EQ(Output1, Commands[0].Output) << ErrorMessage; in TEST()
143 EXPECT_EQ(Command1, Commands[0].CommandLine[0]) << ErrorMessage; in TEST()
144 EXPECT_EQ(Directory2, Commands[1].Directory) << ErrorMessage; in TEST()
145 EXPECT_EQ(FileName2, Commands[1].Filename) << ErrorMessage; in TEST()
146 EXPECT_EQ(Output2, Commands[1].Output) << ErrorMessage; in TEST()
148 EXPECT_EQ(Command2, Commands[1].CommandLine[0]) << ErrorMessage; in TEST()
162 ErrorMessage); in TEST()
163 EXPECT_EQ(2U, Commands.size()) << ErrorMessage; in TEST()
164 EXPECT_EQ(Directory2, Commands[0].Directory) << ErrorMessage; in TEST()
165 EXPECT_EQ(FileName2, Commands[0].Filename) << ErrorMessage; in TEST()
167 EXPECT_EQ(Command2, Commands[0].CommandLine[0]) << ErrorMessage; in TEST()
168 EXPECT_EQ(Directory1, Commands[1].Directory) << ErrorMessage; in TEST()
169 EXPECT_EQ(FileName1, Commands[1].Filename) << ErrorMessage; in TEST()
171 EXPECT_EQ(Command1, Commands[1].CommandLine[0]) << ErrorMessage; in TEST()
176 std::string &ErrorMessage) { in findCompileArgsInJsonDatabase() argument
178 JSONCompilationDatabase::loadFromBuffer(JSONDatabase, ErrorMessage, in findCompileArgsInJsonDatabase()
197 std::string ErrorMessage; in TEST() local
204 ErrorMessage); in TEST()
205 EXPECT_EQ(Directory, FoundCommand.Directory) << ErrorMessage; in TEST()
206 EXPECT_EQ(1u, FoundCommand.CommandLine.size()) << ErrorMessage; in TEST()
207 EXPECT_EQ(Arguments, FoundCommand.CommandLine[0]) << ErrorMessage; in TEST()
296 std::string ErrorMessage; in TEST() local
298 "a-file.cpp", "", ErrorMessage); in TEST()
299 EXPECT_TRUE(NotFound.CommandLine.empty()) << ErrorMessage; in TEST()
300 EXPECT_TRUE(NotFound.Directory.empty()) << ErrorMessage; in TEST()
307 std::string ErrorMessage; in TEST() local
313 ErrorMessage); in TEST()
314 EXPECT_EQ(Directory, FoundCommand.Directory) << ErrorMessage; in TEST()
315 ASSERT_EQ(4u, FoundCommand.CommandLine.size()) << ErrorMessage; in TEST()
317 FoundCommand.CommandLine[0]) << ErrorMessage; in TEST()
318 EXPECT_EQ("and", FoundCommand.CommandLine[1]) << ErrorMessage; in TEST()
319 EXPECT_EQ("some", FoundCommand.CommandLine[2]) << ErrorMessage; in TEST()
320 EXPECT_EQ("arguments", FoundCommand.CommandLine[3]) << ErrorMessage; in TEST()
327 ErrorMessage); in TEST()
328 EXPECT_TRUE(NotFound.Directory.empty()) << ErrorMessage; in TEST()
329 EXPECT_TRUE(NotFound.CommandLine.empty()) << ErrorMessage; in TEST()
336 std::string ErrorMessage; in TEST() local
342 ErrorMessage); in TEST()
345 FoundCommand.CommandLine[0]) << ErrorMessage; in TEST()
346 EXPECT_EQ("and an argument", FoundCommand.CommandLine[1]) << ErrorMessage; in TEST()
353 std::string ErrorMessage; in TEST() local
359 ErrorMessage); in TEST()
360 EXPECT_EQ(Directory, FoundCommand.Directory) << ErrorMessage; in TEST()
376 std::string ErrorMessage; in TEST() local
378 "//net/directory4/file4", JsonDatabase, ErrorMessage); in TEST()
379 EXPECT_EQ("//net/directory4", FoundCommand.Directory) << ErrorMessage; in TEST()
380 ASSERT_EQ(1u, FoundCommand.CommandLine.size()) << ErrorMessage; in TEST()
381 EXPECT_EQ("command4", FoundCommand.CommandLine[0]) << ErrorMessage; in TEST()
397 std::string ErrorMessage; in TEST() local
404 findCompileArgsInJsonDatabase("//net/dir/foo.c", DB, ErrorMessage); in TEST()
414 std::string ErrorMessage; in unescapeJsonCommandLine() local
416 "//net/root/test", JsonDatabase, ErrorMessage); in unescapeJsonCommandLine()
417 EXPECT_TRUE(ErrorMessage.empty()) << ErrorMessage; in unescapeJsonCommandLine()
646 std::string ErrorMessage; in TEST() local
648 FixedCompilationDatabase::loadFromCommandLine(Argc, Argv, ErrorMessage); in TEST()
650 ASSERT_TRUE(ErrorMessage.empty()); in TEST()