| 45 | } |
| 46 | |
| 47 | TEST(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 | |
| 61 | TEST(RegisterRegexFunctions, NotRegisteredIfDisabled) { |
| 62 | FunctionRegistry registry; |
nothing calls this directly
no test coverage detected