github.com/golang/mock@v1.6.0/mockgen/internal/tests/extra_import/mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/golang/mock/mockgen/internal/tests/extra_import (interfaces: Foo) 3 4 // Package extra_import is a generated GoMock package. 5 package extra_import 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 ) 12 13 // MockFoo is a mock of Foo interface. 14 type MockFoo struct { 15 ctrl *gomock.Controller 16 recorder *MockFooMockRecorder 17 } 18 19 // MockFooMockRecorder is the mock recorder for MockFoo. 20 type MockFooMockRecorder struct { 21 mock *MockFoo 22 } 23 24 // NewMockFoo creates a new mock instance. 25 func NewMockFoo(ctrl *gomock.Controller) *MockFoo { 26 mock := &MockFoo{ctrl: ctrl} 27 mock.recorder = &MockFooMockRecorder{mock} 28 return mock 29 } 30 31 // EXPECT returns an object that allows the caller to indicate expected use. 32 func (m *MockFoo) EXPECT() *MockFooMockRecorder { 33 return m.recorder 34 } 35 36 // Bar mocks base method. 37 func (m *MockFoo) Bar(arg0 []string, arg1 chan<- Message) { 38 m.ctrl.T.Helper() 39 m.ctrl.Call(m, "Bar", arg0, arg1) 40 } 41 42 // Bar indicates an expected call of Bar. 43 func (mr *MockFooMockRecorder) Bar(arg0, arg1 interface{}) *gomock.Call { 44 mr.mock.ctrl.T.Helper() 45 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bar", reflect.TypeOf((*MockFoo)(nil).Bar), arg0, arg1) 46 }