MCPcopy
hub / github.com/sourcegraph/checkup / Error

Method Error

types/errors.go:11–19  ·  view source on GitHub ↗

Error returns a string containing all the errors in e.

()

Source from the content-addressed store, hash-verified

9
10// Error returns a string containing all the errors in e.
11func (e Errors) Error() string {
12 var errs []string
13 for _, err := range e {
14 if err != nil {
15 errs = append(errs, err.Error())
16 }
17 }
18 return strings.Join(errs, "; ")
19}
20
21// Empty returns whether e has any non-nil errors in it.
22func (e Errors) Empty() bool {

Callers 11

TestCheckAndStoreFunction · 0.80
TestErrorsFunction · 0.80
withGitHubServerFunction · 0.80
doChecksMethod · 0.80
doChecksMethod · 0.80
doChecksMethod · 0.80
doChecksMethod · 0.80
doChecksMethod · 0.80

Calls

no outgoing calls

Tested by 6

TestCheckAndStoreFunction · 0.64
TestErrorsFunction · 0.64
withGitHubServerFunction · 0.64