diff --git a/pkg/moq/moq_test.go b/pkg/moq/moq_test.go index 626033a..18c33d6 100644 --- a/pkg/moq/moq_test.go +++ b/pkg/moq/moq_test.go @@ -28,8 +28,8 @@ func TestMoq(t *testing.T) { "GetFunc func(ctx context.Context, id string) (*Person, error)", "func (mock *PersonStoreMock) Create(ctx context.Context, person *Person, confirm bool) error", "func (mock *PersonStoreMock) Get(ctx context.Context, id string) (*Person, error)", - "panic(\"moq: PersonStoreMock.CreateFunc is nil but PersonStore.Create was just called\")", - "panic(\"moq: PersonStoreMock.GetFunc is nil but PersonStore.Get was just called\")", + "panic(\"PersonStoreMock.CreateFunc: method is nil but PersonStore.Create was just called\")", + "panic(\"PersonStoreMock.GetFunc: method is nil but PersonStore.Get was just called\")", "lockPersonStoreMockGet.Lock()", "mock.calls.Get = append(mock.calls.Get, callInfo)", "lockPersonStoreMockGet.Unlock()", diff --git a/pkg/moq/template.go b/pkg/moq/template.go index 4d70827..73c6dee 100644 --- a/pkg/moq/template.go +++ b/pkg/moq/template.go @@ -59,7 +59,7 @@ type {{.InterfaceName}}Mock struct { // {{.Name}} calls {{.Name}}Func. func (mock *{{$obj.InterfaceName}}Mock) {{.Name}}({{.Arglist}}) {{.ReturnArglist}} { if mock.{{.Name}}Func == nil { - panic("moq: {{$obj.InterfaceName}}Mock.{{.Name}}Func is nil but {{$obj.InterfaceName}}.{{.Name}} was just called") + panic("{{$obj.InterfaceName}}Mock.{{.Name}}Func: method is nil but {{$obj.InterfaceName}}.{{.Name}} was just called") } callInfo := struct { {{- range .Params }}