MCPcopy Create free account
hub / github.com/clice-io/clice / EXPECT_STRIP

Function EXPECT_STRIP

tests/unit/command/command_tests.cpp:26–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24TEST_SUITE(Command) {
25
26void EXPECT_STRIP(llvm::StringRef argv, llvm::StringRef result) {
27 CompilationDatabase database;
28 llvm::StringRef file = "main.cpp";
29 database.add_command("fake/", file, argv);
30 ASSERT_EQ(result, print_argv(database.lookup(file, quiet_options()).front().to_argv()));
31};
32
33TEST_CASE(DefaultFilters) {
34 /// Filter -c, -o and input file.

Callers 1

TEST_CASEFunction · 0.85

Calls 5

print_argvFunction · 0.85
quiet_optionsFunction · 0.85
add_commandMethod · 0.80
to_argvMethod · 0.80
lookupMethod · 0.45

Tested by

no test coverage detected