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

Function TestParserErrorRecoveryLimit

cel/env_test.go:1475–1483  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1473}
1474
1475func TestParserErrorRecoveryLimit(t *testing.T) {
1476 env, err := NewEnv(ParserErrorRecoveryLimit(10))
1477 if err != nil {
1478 t.Fatalf("NewEnv(ParserErrorRecoveryLimit(10)) failed: %v", err)
1479 }
1480 if env.limits[limitParseErrorRecovery] != 10 {
1481 t.Errorf("limitParseErrorRecovery = %d, want 10", env.limits[limitParseErrorRecovery])
1482 }
1483}
1484
1485func TestEnableHiddenAccumulatorName(t *testing.T) {
1486 _, err := NewEnv(EnableHiddenAccumulatorName(true))

Callers

nothing calls this directly

Calls 2

ParserErrorRecoveryLimitFunction · 0.85
NewEnvFunction · 0.70

Tested by

no test coverage detected