MCPcopy Create free account
hub / github.com/despiteallobjections/amigo / String

Method String

types/errors.go:76–81  ·  view source on GitHub ↗

String is for testing.

()

Source from the content-addressed store, hash-verified

74
75// String is for testing.
76func (err *error_) String() string {
77 if err.empty() {
78 return "no error"
79 }
80 return fmt.Sprintf("%s: %s", err.pos(), err.msg(nil))
81}
82
83// errorf adds formatted error information to err.
84// It may be called multiple times to provide additional information.

Callers 1

TestErrorFunction · 0.95

Calls 3

emptyMethod · 0.95
posMethod · 0.95
msgMethod · 0.95

Tested by 1

TestErrorFunction · 0.76