Improved generated code

This commit is contained in:
Mat Ryer 2017-07-07 20:04:25 +01:00
parent feae1301cf
commit 50ce4e36c7

View File

@ -265,7 +265,7 @@ type {{.InterfaceName}}Mock struct {
{{ end }}
// CallsTo tracks calls to the methods.
CallsTo struct {
{{ range .Methods }}
{{- range .Methods }}
lock{{.Name}} sync.Mutex // protects {{ .Name }}
// {{ .Name }} holds details about calls to the {{.Name}} method.
{{ .Name }} []struct {