mockgen/internal/tests/aux_imports_embedded_interface/bugreport_test.go
raw| 1 | package bugreport |
| 2 | |
| 3 | import ( |
| 4 | "testing" |
| 5 | |
| 6 | "github.com/golang/mock/gomock" |
| 7 | ) |
| 8 | |
| 9 | // TestValidInterface assesses whether or not the generated mock is valid |
| 10 | func TestValidInterface(t *testing.T) { |
| 11 | ctrl := gomock.NewController(t) |
| 12 | defer ctrl.Finish() |
| 13 | |
| 14 | s := NewMockSource(ctrl) |
| 15 | s.EXPECT().Method().Return("") |
| 16 | |
| 17 | CallForeignMethod(s) |
| 18 | } |