MCPcopy Index your code
hub / github.com/expr-lang/expr / Error

Method Error

internal/spew/common_test.go:88–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86type customError int
87
88func (e customError) Error() string {
89 return fmt.Sprintf("error: %d", int(e))
90}
91
92// stringizeWants converts a slice of wanted test output into a format suitable
93// for a test error message.

Callers 2

handleMethodsFunction · 0.45
TestSpewFunction · 0.45

Calls 1

SprintfMethod · 0.80

Tested by

no test coverage detected