From 124baf32f3f78b5eab632b44eabffa9d87d04c2f Mon Sep 17 00:00:00 2001 From: Mat Ryer Date: Mon, 29 Aug 2016 13:12:21 +0100 Subject: [PATCH] minor tweaks --- package/moq/moq.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/moq/moq.go b/package/moq/moq.go index 3ed65ec..72f40ee 100644 --- a/package/moq/moq.go +++ b/package/moq/moq.go @@ -181,7 +181,8 @@ type {{.Name}}Mock struct { {{.Name}}Func func({{ .Arglist }}) {{.ReturnArglist}} {{ end }}} {{ range .Methods }} -// {{.Name}} calls the mocked {{.Name}}Func function. +// {{.Name}} calls the mocked {{.Name}}Func function or panics if it was +// not set. func (mock {{.Name}}Mock) {{.Name}}({{ .Arglist }}) {{.ReturnArglist}} { if mock.{{.Name}} == nil { panic("moq: {{.Name}}Func is nil but was just called")