gotosocial/internal/distributor/mock_Distributor.go

70 lines
1.3 KiB
Go
Raw Normal View History

2021-03-26 23:55:32 +01:00
// Code generated by mockery v2.7.4. DO NOT EDIT.
2021-03-27 16:27:28 +01:00
package distributor
2021-03-26 23:55:32 +01:00
import mock "github.com/stretchr/testify/mock"
2021-03-27 16:27:28 +01:00
// MockDistributor is an autogenerated mock type for the Distributor type
type MockDistributor struct {
2021-03-26 23:55:32 +01:00
mock.Mock
}
// ClientAPIIn provides a mock function with given fields:
2021-03-27 16:27:28 +01:00
func (_m *MockDistributor) ClientAPIIn() chan interface{} {
2021-03-26 23:55:32 +01:00
ret := _m.Called()
var r0 chan interface{}
if rf, ok := ret.Get(0).(func() chan interface{}); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(chan interface{})
}
}
return r0
}
// ClientAPIOut provides a mock function with given fields:
2021-03-27 16:27:28 +01:00
func (_m *MockDistributor) ClientAPIOut() chan interface{} {
2021-03-26 23:55:32 +01:00
ret := _m.Called()
var r0 chan interface{}
if rf, ok := ret.Get(0).(func() chan interface{}); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(chan interface{})
}
}
return r0
}
// Start provides a mock function with given fields:
2021-03-27 16:27:28 +01:00
func (_m *MockDistributor) Start() error {
2021-03-26 23:55:32 +01: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
}
// Stop provides a mock function with given fields:
2021-03-27 16:27:28 +01:00
func (_m *MockDistributor) Stop() error {
2021-03-26 23:55:32 +01: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
}