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

Function TEST

parser/macro_registry_test.cc:30–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28using ::testing::Ne;
29
30TEST(MacroRegistry, RegisterAndFind) {
31 MacroRegistry macros;
32 EXPECT_THAT(macros.RegisterMacro(HasMacro()), IsOk());
33 EXPECT_THAT(macros.FindMacro("has", 1, false), Ne(absl::nullopt));
34}
35
36TEST(MacroRegistry, RegisterRollsback) {
37 MacroRegistry macros;

Callers

nothing calls this directly

Calls 3

RegisterMacroMethod · 0.80
FindMacroMethod · 0.80
RegisterMacrosMethod · 0.80

Tested by

no test coverage detected