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

Function TEST

runtime/standard/regex_functions_test.cc:47–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47TEST(RegisterRegexFunctions, Registered) {
48 FunctionRegistry registry;
49 RuntimeOptions options;
50
51 ASSERT_OK(RegisterRegexFunctions(registry, options));
52
53 auto overloads = registry.ListFunctions();
54
55 EXPECT_THAT(overloads[builtin::kRegexMatch],
56 UnorderedElementsAre(
57 MatchesDescriptor(builtin::kRegexMatch, CallStyle::kReceiver),
58 MatchesDescriptor(builtin::kRegexMatch, CallStyle::kFree)));
59}
60
61TEST(RegisterRegexFunctions, NotRegisteredIfDisabled) {
62 FunctionRegistry registry;

Callers

nothing calls this directly

Calls 2

RegisterRegexFunctionsFunction · 0.70
ListFunctionsMethod · 0.45

Tested by

no test coverage detected