Merge branch 'master' into TestVendoredBuildConstraints

This commit is contained in:
Mat Ryer
2019-01-21 17:17:03 +00:00
committed by GitHub
6 changed files with 22 additions and 21 deletions

View File

@@ -29,12 +29,12 @@ var (
// // make and configure a mocked {{.InterfaceName}}
// mocked{{.InterfaceName}} := &{{.InterfaceName}}Mock{ {{ range .Methods }}
// {{.Name}}Func: func({{ .Arglist }}) {{.ReturnArglist}} {
// panic("TODO: mock out the {{.Name}} method")
// panic("mock out the {{.Name}} method")
// },{{- end }}
// }
//
// // TODO: use mocked{{.InterfaceName}} in code that requires {{.InterfaceName}}
// // and then make assertions.
// // use mocked{{.InterfaceName}} in code that requires {{.InterfaceName}}
// // and then make assertions.
//
// }
type {{.InterfaceName}}Mock struct {

View File

@@ -19,12 +19,12 @@ var (
// // make and configure a mocked Service
// mockedService := &ServiceMock{
// UserFunc: func(ID string) (dotimport.User, error) {
// panic("TODO: mock out the User method")
// panic("mock out the User method")
// },
// }
//
// // TODO: use mockedService in code that requires Service
// // and then make assertions.
// // use mockedService in code that requires Service
// // and then make assertions.
//
// }
type ServiceMock struct {

View File

@@ -19,12 +19,12 @@ var (
// // make and configure a mocked Service
// mockedService := &ServiceMock{
// DoSomethingFunc: func(in1 somerepo.SomeType) error {
// panic("TODO: mock out the DoSomething method")
// panic("mock out the DoSomething method")
// },
// }
//
// // TODO: use mockedService in code that requires Service
// // and then make assertions.
// // use mockedService in code that requires Service
// // and then make assertions.
//
// }
type ServiceMock struct {