MCPcopy Create free account
hub / github.com/cel-expr/cel-go / TestRegexVersion

Function TestRegexVersion

ext/regex_test.go:257–262  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

255}
256
257func TestRegexVersion(t *testing.T) {
258 _, err := cel.NewEnv(cel.OptionalTypes(), Regex(RegexVersion(0)))
259 if err != nil {
260 t.Fatalf("Regex(0) failed: %v", err)
261 }
262}
263
264func testRegexEnv(t *testing.T, opts ...cel.EnvOption) *cel.Env {
265 t.Helper()

Callers

nothing calls this directly

Calls 4

NewEnvFunction · 0.92
OptionalTypesFunction · 0.92
RegexFunction · 0.85
RegexVersionFunction · 0.85

Tested by

no test coverage detected