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

Method Append

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

1011
1012// Append collects the issues from another Issues struct into a new Issues object.
1013func (i *Issues) Append(other *Issues) *Issues {
1014 if i == nil {
1015 return other
1016 }
1017 if other == nil || i == other {
1018 return i
1019 }
1020 return NewIssuesWithSourceInfo(i.errs.Append(other.errs.GetErrors()), i.info)
1021}
1022
1023// String converts the issues to a suitable display string.
1024func (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