summaryrefslogtreecommitdiff
path: root/vendor/github.com/golang/mock/mockgen/tests/aux_imports_embedded_interface/bugreport_test.go
blob: acfca3227f9b0cfedeac43bbb93bc8c855e6a8fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package bugreport

import (
	"testing"

	"github.com/golang/mock/gomock"
)

// TestValidInterface assesses whether or not the generated mock is valid
func TestValidInterface(t *testing.T) {
	ctrl := gomock.NewController(t)
	defer ctrl.Finish()

	s := NewMockSource(ctrl)
	s.EXPECT().Method().Return("")

	CallForeignMethod(s)
}