2021-04-01 20:46:45 +02:00
|
|
|
// Code generated by mockery v2.7.4. DO NOT EDIT.
|
|
|
|
|
|
|
|
package distributor
|
|
|
|
|
|
|
|
import mock "github.com/stretchr/testify/mock"
|
|
|
|
|
|
|
|
// MockDistributor is an autogenerated mock type for the Distributor type
|
|
|
|
type MockDistributor struct {
|
|
|
|
mock.Mock
|
|
|
|
}
|
|
|
|
|
2021-04-19 19:42:19 +02:00
|
|
|
// FromClientAPI provides a mock function with given fields:
|
|
|
|
func (_m *MockDistributor) FromClientAPI() chan FromClientAPI {
|
2021-04-01 20:46:45 +02:00
|
|
|
ret := _m.Called()
|
|
|
|
|
2021-04-19 19:42:19 +02:00
|
|
|
var r0 chan FromClientAPI
|
|
|
|
if rf, ok := ret.Get(0).(func() chan FromClientAPI); ok {
|
2021-04-01 20:46:45 +02:00
|
|
|
r0 = rf()
|
|
|
|
} else {
|
|
|
|
if ret.Get(0) != nil {
|
2021-04-19 19:42:19 +02:00
|
|
|
r0 = ret.Get(0).(chan FromClientAPI)
|
2021-04-01 20:46:45 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return r0
|
|
|
|
}
|
|
|
|
|
2021-04-19 19:42:19 +02:00
|
|
|
// Start provides a mock function with given fields:
|
|
|
|
func (_m *MockDistributor) Start() error {
|
2021-04-01 20:46:45 +02:00
|
|
|
ret := _m.Called()
|
|
|
|
|
2021-04-19 19:42:19 +02:00
|
|
|
var r0 error
|
|
|
|
if rf, ok := ret.Get(0).(func() error); ok {
|
2021-04-01 20:46:45 +02:00
|
|
|
r0 = rf()
|
|
|
|
} else {
|
2021-04-19 19:42:19 +02:00
|
|
|
r0 = ret.Error(0)
|
2021-04-01 20:46:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return r0
|
|
|
|
}
|
|
|
|
|
2021-04-19 19:42:19 +02:00
|
|
|
// Stop provides a mock function with given fields:
|
|
|
|
func (_m *MockDistributor) Stop() error {
|
2021-04-01 20:46:45 +02:00
|
|
|
ret := _m.Called()
|
|
|
|
|
|
|
|
var r0 error
|
|
|
|
if rf, ok := ret.Get(0).(func() error); ok {
|
|
|
|
r0 = rf()
|
|
|
|
} else {
|
|
|
|
r0 = ret.Error(0)
|
|
|
|
}
|
|
|
|
|
|
|
|
return r0
|
|
|
|
}
|
|
|
|
|
2021-04-19 19:42:19 +02:00
|
|
|
// ToClientAPI provides a mock function with given fields:
|
|
|
|
func (_m *MockDistributor) ToClientAPI() chan ToClientAPI {
|
2021-04-01 20:46:45 +02:00
|
|
|
ret := _m.Called()
|
|
|
|
|
2021-04-19 19:42:19 +02:00
|
|
|
var r0 chan ToClientAPI
|
|
|
|
if rf, ok := ret.Get(0).(func() chan ToClientAPI); ok {
|
2021-04-01 20:46:45 +02:00
|
|
|
r0 = rf()
|
|
|
|
} else {
|
2021-04-19 19:42:19 +02:00
|
|
|
if ret.Get(0) != nil {
|
|
|
|
r0 = ret.Get(0).(chan ToClientAPI)
|
|
|
|
}
|
2021-04-01 20:46:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return r0
|
|
|
|
}
|