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

Function TestAstProgramNilValue

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

Source from the content-addressed store, hash-verified

4994}
4995
4996func TestAstProgramNilValue(t *testing.T) {
4997 var ast *Ast = nil
4998 env := testEnv(t)
4999 prg, err := env.Program(ast)
5000 if err == nil || !strings.Contains(err.Error(), "unsupported expr") {
5001 t.Errorf("env.Program() got (%v,%v) wanted unsupported expr error", prg, err)
5002 }
5003}
5004
5005func TestJSONFieldNames(t *testing.T) {
5006 tests := []struct {

Callers

nothing calls this directly

Calls 4

ProgramMethod · 0.80
testEnvFunction · 0.70
ContainsMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected