Lines Matching refs:Commands
104 std::vector<CompileCommand> Commands = getAllCompileCommands( in TEST() local
112 EXPECT_EQ(2U, Commands.size()) << ErrorMessage; in TEST()
113 EXPECT_EQ(Directory1, Commands[0].Directory) << ErrorMessage; in TEST()
114 EXPECT_EQ(FileName1, Commands[0].Filename) << ErrorMessage; in TEST()
115 ASSERT_EQ(1u, Commands[0].CommandLine.size()); in TEST()
116 EXPECT_EQ(Command1, Commands[0].CommandLine[0]) << ErrorMessage; in TEST()
117 EXPECT_EQ(Directory2, Commands[1].Directory) << ErrorMessage; in TEST()
118 EXPECT_EQ(FileName2, Commands[1].Filename) << ErrorMessage; in TEST()
119 ASSERT_EQ(1u, Commands[1].CommandLine.size()); in TEST()
120 EXPECT_EQ(Command2, Commands[1].CommandLine[0]) << ErrorMessage; in TEST()
123 Commands = getAllCompileCommands( in TEST()
131 EXPECT_EQ(2U, Commands.size()) << ErrorMessage; in TEST()
132 EXPECT_EQ(Directory2, Commands[0].Directory) << ErrorMessage; in TEST()
133 EXPECT_EQ(FileName2, Commands[0].Filename) << ErrorMessage; in TEST()
134 ASSERT_EQ(1u, Commands[0].CommandLine.size()); in TEST()
135 EXPECT_EQ(Command2, Commands[0].CommandLine[0]) << ErrorMessage; in TEST()
136 EXPECT_EQ(Directory1, Commands[1].Directory) << ErrorMessage; in TEST()
137 EXPECT_EQ(FileName1, Commands[1].Filename) << ErrorMessage; in TEST()
138 ASSERT_EQ(1u, Commands[1].CommandLine.size()); in TEST()
139 EXPECT_EQ(Command1, Commands[1].CommandLine[0]) << ErrorMessage; in TEST()
149 std::vector<CompileCommand> Commands = Database->getCompileCommands(FileName); in findCompileArgsInJsonDatabase() local
150 EXPECT_LE(Commands.size(), 1u); in findCompileArgsInJsonDatabase()
151 if (Commands.empty()) in findCompileArgsInJsonDatabase()
153 return Commands[0]; in findCompileArgsInJsonDatabase()