Merge branch 'master' into TestVendoredBuildConstraints
This commit is contained in:
commit
2647bdb8ea
@ -3,12 +3,13 @@ language: go
|
|||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- 1.7.x
|
- 1.9.x
|
||||||
- 1.8.x
|
- 1.10.x
|
||||||
|
- 1.11.x
|
||||||
- tip
|
- tip
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- go get github.com/golang/lint/golint
|
- go get golang.org/x/lint/golint
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- go vet ./...
|
- go vet ./...
|
||||||
|
@ -20,14 +20,14 @@ var (
|
|||||||
// // make and configure a mocked PersonStore
|
// // make and configure a mocked PersonStore
|
||||||
// mockedPersonStore := &PersonStoreMock{
|
// mockedPersonStore := &PersonStoreMock{
|
||||||
// CreateFunc: func(ctx context.Context, person *Person, confirm bool) error {
|
// CreateFunc: func(ctx context.Context, person *Person, confirm bool) error {
|
||||||
// panic("TODO: mock out the Create method")
|
// panic("mock out the Create method")
|
||||||
// },
|
// },
|
||||||
// GetFunc: func(ctx context.Context, id string) (*Person, error) {
|
// GetFunc: func(ctx context.Context, id string) (*Person, error) {
|
||||||
// panic("TODO: mock out the Get method")
|
// panic("mock out the Get method")
|
||||||
// },
|
// },
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
// // TODO: use mockedPersonStore in code that requires PersonStore
|
// // use mockedPersonStore in code that requires PersonStore
|
||||||
// // and then make assertions.
|
// // and then make assertions.
|
||||||
//
|
//
|
||||||
// }
|
// }
|
||||||
|
@ -20,17 +20,17 @@ var (
|
|||||||
// // make and configure a mocked MyInterface
|
// // make and configure a mocked MyInterface
|
||||||
// mockedMyInterface := &MyInterfaceMock{
|
// mockedMyInterface := &MyInterfaceMock{
|
||||||
// OneFunc: func() bool {
|
// OneFunc: func() bool {
|
||||||
// panic("TODO: mock out the One method")
|
// panic("mock out the One method")
|
||||||
// },
|
// },
|
||||||
// ThreeFunc: func() string {
|
// ThreeFunc: func() string {
|
||||||
// panic("TODO: mock out the Three method")
|
// panic("mock out the Three method")
|
||||||
// },
|
// },
|
||||||
// TwoFunc: func() int {
|
// TwoFunc: func() int {
|
||||||
// panic("TODO: mock out the Two method")
|
// panic("mock out the Two method")
|
||||||
// },
|
// },
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
// // TODO: use mockedMyInterface in code that requires MyInterface
|
// // use mockedMyInterface in code that requires MyInterface
|
||||||
// // and then make assertions.
|
// // and then make assertions.
|
||||||
//
|
//
|
||||||
// }
|
// }
|
||||||
|
@ -29,11 +29,11 @@ var (
|
|||||||
// // make and configure a mocked {{.InterfaceName}}
|
// // make and configure a mocked {{.InterfaceName}}
|
||||||
// mocked{{.InterfaceName}} := &{{.InterfaceName}}Mock{ {{ range .Methods }}
|
// mocked{{.InterfaceName}} := &{{.InterfaceName}}Mock{ {{ range .Methods }}
|
||||||
// {{.Name}}Func: func({{ .Arglist }}) {{.ReturnArglist}} {
|
// {{.Name}}Func: func({{ .Arglist }}) {{.ReturnArglist}} {
|
||||||
// panic("TODO: mock out the {{.Name}} method")
|
// panic("mock out the {{.Name}} method")
|
||||||
// },{{- end }}
|
// },{{- end }}
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
// // TODO: use mocked{{.InterfaceName}} in code that requires {{.InterfaceName}}
|
// // use mocked{{.InterfaceName}} in code that requires {{.InterfaceName}}
|
||||||
// // and then make assertions.
|
// // and then make assertions.
|
||||||
//
|
//
|
||||||
// }
|
// }
|
||||||
|
@ -19,11 +19,11 @@ var (
|
|||||||
// // make and configure a mocked Service
|
// // make and configure a mocked Service
|
||||||
// mockedService := &ServiceMock{
|
// mockedService := &ServiceMock{
|
||||||
// UserFunc: func(ID string) (dotimport.User, error) {
|
// 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
|
// // use mockedService in code that requires Service
|
||||||
// // and then make assertions.
|
// // and then make assertions.
|
||||||
//
|
//
|
||||||
// }
|
// }
|
||||||
|
@ -19,11 +19,11 @@ var (
|
|||||||
// // make and configure a mocked Service
|
// // make and configure a mocked Service
|
||||||
// mockedService := &ServiceMock{
|
// mockedService := &ServiceMock{
|
||||||
// DoSomethingFunc: func(in1 somerepo.SomeType) error {
|
// 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
|
// // use mockedService in code that requires Service
|
||||||
// // and then make assertions.
|
// // and then make assertions.
|
||||||
//
|
//
|
||||||
// }
|
// }
|
||||||
|
Loading…
Reference in New Issue
Block a user