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

Function TestIssuesNil

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

Source from the content-addressed store, hash-verified

57}
58
59func TestIssuesNil(t *testing.T) {
60 var iss *Issues
61 iss = iss.Append(iss)
62 if iss.Err() != nil {
63 t.Errorf("iss.Err() got %v, wanted nil given nil issue set", iss.Err())
64 }
65 if len(iss.Errors()) != 0 {
66 t.Errorf("iss.Errors() got %v, wanted empty value", iss.Errors())
67 }
68 if iss.String() != "" {
69 t.Errorf("iss.String() returned %v, wanted empty value", iss.String())
70 }
71}
72
73func TestIssuesEmpty(t *testing.T) {
74 iss := NewIssues(common.NewErrors(nil))

Callers

nothing calls this directly

Calls 4

AppendMethod · 0.95
ErrMethod · 0.95
ErrorsMethod · 0.95
StringMethod · 0.95

Tested by

no test coverage detected