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