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

Function TestParseError

cel/cel_test.go:1772–1778  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1770}
1771
1772func TestParseError(t *testing.T) {
1773 env := testEnv(t)
1774 _, iss := env.Parse("invalid & logical_and")
1775 if iss.Err() == nil {
1776 t.Fatal("e.Parse('invalid & logical_and') did not error")
1777 }
1778}
1779
1780func TestParseWithMacroTracking(t *testing.T) {
1781 env := testEnv(t, EnableMacroCallTracking())

Callers

nothing calls this directly

Calls 3

ErrMethod · 0.80
testEnvFunction · 0.70
ParseMethod · 0.65

Tested by

no test coverage detected