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

Method Append

cel/env.go:1049–1057  ·  view source on GitHub ↗

Append collects the issues from another Issues struct into a new Issues object.

(other *Issues)

Source from the content-addressed store, hash-verified

1047
1048// Append collects the issues from another Issues struct into a new Issues object.
1049func (i *Issues) Append(other *Issues) *Issues {
1050 if i == nil {
1051 return other
1052 }
1053 if other == nil || i == other {
1054 return i
1055 }
1056 return NewIssuesWithSourceInfo(i.errs.Append(other.errs.GetErrors()), i.info)
1057}
1058
1059// String converts the issues to a suitable display string.
1060func (i *Issues) String() string {

Callers 5

TestIssuesNilFunction · 0.95
TestIssuesEmptyFunction · 0.95
compileRuleMethod · 0.45
TestIssuesAppendSelfFunction · 0.45
TestIssuesFunction · 0.45

Calls 2

NewIssuesWithSourceInfoFunction · 0.85
GetErrorsMethod · 0.80

Tested by 4

TestIssuesNilFunction · 0.76
TestIssuesEmptyFunction · 0.76
TestIssuesAppendSelfFunction · 0.36
TestIssuesFunction · 0.36