shad-go/lectures/04-testing/gomock/example.go
2020-03-19 16:23:32 +03:00

11 lines
152 B
Go

package example
//go:generate mockgen -package example -destination mock.go . Foo
type Foo interface {
Bar(x int) int
}
func SUT(f Foo) {
// ...
}