MCPcopy
hub / github.com/vektra/mockery / Error

Method Error

internal/fixtures/custom_error.go:8–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6}
7
8func (e *Err) Error() string {
9 return e.msg
10}
11
12func (e *Err) Code() uint64 {
13 return e.code

Callers 15

TagMethod · 0.45
getTemplateMethod · 0.45
GenerateMethod · 0.45
NewRootCmdFunction · 0.45
AppendMethod · 0.45
RunMethod · 0.45
GetStringMethod · 0.45
runFunction · 0.45
TestExistsDotFunction · 0.45
TestNotFoundFunction · 0.45
FooMethod · 0.45
GetMethod · 0.45

Calls

no outgoing calls

Tested by 15

GetStringMethod · 0.36
TestExistsDotFunction · 0.36
TestNotFoundFunction · 0.36
FooMethod · 0.36
GetMethod · 0.36
LockMethod · 0.36
UnlockMethod · 0.36
CreateMethod · 0.36
ManyArgsReturnsMethod · 0.36
VariadicMethod · 0.36
VariadicManyMethod · 0.36
ManyArgsReturnsMethod · 0.36