shad-go/lectures/04-testing/gomock/example.go

12 lines
152 B
Go
Raw Normal View History

2020-03-19 13:23:32 +00:00
package example
//go:generate mockgen -package example -destination mock.go . Foo
type Foo interface {
Bar(x int) int
}
func SUT(f Foo) {
// ...
}