Xray-core/testing/mocks/mux.go

51 lines
1.6 KiB
Go
Raw Normal View History

2020-11-25 13:01:53 +02:00
// Code generated by MockGen. DO NOT EDIT.
2020-12-04 03:36:16 +02:00
// Source: github.com/xtls/xray-core/common/mux (interfaces: ClientWorkerFactory)
2020-11-25 13:01:53 +02:00
// Package mocks is a generated GoMock package.
package mocks
import (
2021-04-09 18:36:48 +03:00
reflect "reflect"
2020-11-25 13:01:53 +02:00
gomock "github.com/golang/mock/gomock"
2020-12-04 03:36:16 +02:00
mux "github.com/xtls/xray-core/common/mux"
2020-11-25 13:01:53 +02:00
)
2021-04-09 18:36:48 +03:00
// MuxClientWorkerFactory is a mock of ClientWorkerFactory interface.
2020-11-25 13:01:53 +02:00
type MuxClientWorkerFactory struct {
ctrl *gomock.Controller
recorder *MuxClientWorkerFactoryMockRecorder
}
2021-04-09 18:36:48 +03:00
// MuxClientWorkerFactoryMockRecorder is the mock recorder for MuxClientWorkerFactory.
2020-11-25 13:01:53 +02:00
type MuxClientWorkerFactoryMockRecorder struct {
mock *MuxClientWorkerFactory
}
2021-04-09 18:36:48 +03:00
// NewMuxClientWorkerFactory creates a new mock instance.
2020-11-25 13:01:53 +02:00
func NewMuxClientWorkerFactory(ctrl *gomock.Controller) *MuxClientWorkerFactory {
mock := &MuxClientWorkerFactory{ctrl: ctrl}
mock.recorder = &MuxClientWorkerFactoryMockRecorder{mock}
return mock
}
2021-04-09 18:36:48 +03:00
// EXPECT returns an object that allows the caller to indicate expected use.
2020-11-25 13:01:53 +02:00
func (m *MuxClientWorkerFactory) EXPECT() *MuxClientWorkerFactoryMockRecorder {
return m.recorder
}
2021-04-09 18:36:48 +03:00
// Create mocks base method.
2020-11-25 13:01:53 +02:00
func (m *MuxClientWorkerFactory) Create() (*mux.ClientWorker, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Create")
ret0, _ := ret[0].(*mux.ClientWorker)
ret1, _ := ret[1].(error)
return ret0, ret1
}
2021-04-09 18:36:48 +03:00
// Create indicates an expected call of Create.
2020-11-25 13:01:53 +02:00
func (mr *MuxClientWorkerFactoryMockRecorder) Create() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MuxClientWorkerFactory)(nil).Create))
}