github.com/xmplusdev/xray-core@v1.8.10/testing/mocks/mux.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/xmplusdev/xray-core/common/mux (interfaces: ClientWorkerFactory) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 mux "github.com/xmplusdev/xray-core/common/mux" 12 ) 13 14 // MuxClientWorkerFactory is a mock of ClientWorkerFactory interface 15 type MuxClientWorkerFactory struct { 16 ctrl *gomock.Controller 17 recorder *MuxClientWorkerFactoryMockRecorder 18 } 19 20 // MuxClientWorkerFactoryMockRecorder is the mock recorder for MuxClientWorkerFactory 21 type MuxClientWorkerFactoryMockRecorder struct { 22 mock *MuxClientWorkerFactory 23 } 24 25 // NewMuxClientWorkerFactory creates a new mock instance 26 func NewMuxClientWorkerFactory(ctrl *gomock.Controller) *MuxClientWorkerFactory { 27 mock := &MuxClientWorkerFactory{ctrl: ctrl} 28 mock.recorder = &MuxClientWorkerFactoryMockRecorder{mock} 29 return mock 30 } 31 32 // EXPECT returns an object that allows the caller to indicate expected use 33 func (m *MuxClientWorkerFactory) EXPECT() *MuxClientWorkerFactoryMockRecorder { 34 return m.recorder 35 } 36 37 // Create mocks base method 38 func (m *MuxClientWorkerFactory) Create() (*mux.ClientWorker, error) { 39 m.ctrl.T.Helper() 40 ret := m.ctrl.Call(m, "Create") 41 ret0, _ := ret[0].(*mux.ClientWorker) 42 ret1, _ := ret[1].(error) 43 return ret0, ret1 44 } 45 46 // Create indicates an expected call of Create 47 func (mr *MuxClientWorkerFactoryMockRecorder) Create() *gomock.Call { 48 mr.mock.ctrl.T.Helper() 49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MuxClientWorkerFactory)(nil).Create)) 50 }