MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / TEST

Function TEST

checker/internal/namespace_generator_test.cc:32–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30using ::testing::Pair;
31
32TEST(NamespaceGeneratorTest, EmptyContainer) {
33 ExpressionContainer container;
34 ASSERT_OK_AND_ASSIGN(auto generator, NamespaceGenerator::Create(container));
35 std::vector<std::string> candidates;
36 generator.GenerateCandidates("foo", [&](absl::string_view candidate) {
37 candidates.push_back(std::string(candidate));
38 return true;
39 });
40 EXPECT_THAT(candidates, ElementsAre("foo"));
41}
42
43TEST(NamespaceGeneratorTest, MultipleSegments) {
44 ExpressionContainer container;

Callers

nothing calls this directly

Calls 4

GenerateCandidatesMethod · 0.80
SetContainerMethod · 0.80
AddAliasMethod · 0.80
AddAbbreviationMethod · 0.80

Tested by

no test coverage detected