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

Method Append

cel/env.go:1103–1111  ·  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

1101
1102// Append collects the issues from another Issues struct into a new Issues object.
1103func (i *Issues) Append(other *Issues) *Issues {
1104 if i == nil {
1105 return other
1106 }
1107 if other == nil || i == other {
1108 return i
1109 }
1110 return NewIssuesWithSourceInfo(i.errs.Append(other.errs.GetErrors()), i.info)
1111}
1112
1113// String converts the issues to a suitable display string.
1114func (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