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

Function TestStringsWithExtension

ext/strings_test.go:443–452  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

441}
442
443func TestStringsWithExtension(t *testing.T) {
444 env, err := cel.NewEnv(Strings())
445 if err != nil {
446 t.Fatalf("cel.NewEnv(Strings()) failed: %v", err)
447 }
448 _, err = env.Extend(Strings())
449 if err != nil {
450 t.Fatalf("env.Extend(Strings()) failed: %v", err)
451 }
452}
453
454func mustParseDuration(s string) time.Duration {
455 d, err := time.ParseDuration(s)

Callers

nothing calls this directly

Calls 3

ExtendMethod · 0.95
NewEnvFunction · 0.92
StringsFunction · 0.85

Tested by

no test coverage detected