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

Function TestIssuesAppendSelf

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

Source from the content-addressed store, hash-verified

100}
101
102func TestIssuesAppendSelf(t *testing.T) {
103 e, err := NewEnv()
104 if err != nil {
105 t.Fatalf("NewEnv() failed: %v", err)
106 }
107 _, iss := e.Compile("a")
108 if len(iss.Errors()) != 1 {
109 t.Errorf("iss.Errors() got %v, wanted 1 error", iss.Errors())
110 }
111 iss = iss.Append(iss)
112 if len(iss.Errors()) != 1 {
113 t.Errorf("iss.Errors() got %v, wanted 1 error", iss.Errors())
114 }
115}
116
117func TestIssues(t *testing.T) {
118 e, err := NewEnv()

Callers

nothing calls this directly

Calls 4

CompileMethod · 0.95
ErrorsMethod · 0.80
NewEnvFunction · 0.70
AppendMethod · 0.45

Tested by

no test coverage detected