mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-12-27 17:46:31 +00:00
32c5fd987a
This PR adds: Statuses New status creation. View existing status Delete a status Fave a status Unfave a status See who's faved a status Media Upload media attachment and store/retrieve it Upload custom emoji and store/retrieve it Fileserver Serve files from storage Testing Test models, testrig -- run a GTS test instance and play around with it.
71 lines
1.3 KiB
Go
71 lines
1.3 KiB
Go
// 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
|
|
}
|
|
|
|
// FromClientAPI provides a mock function with given fields:
|
|
func (_m *MockDistributor) FromClientAPI() chan FromClientAPI {
|
|
ret := _m.Called()
|
|
|
|
var r0 chan FromClientAPI
|
|
if rf, ok := ret.Get(0).(func() chan FromClientAPI); ok {
|
|
r0 = rf()
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).(chan FromClientAPI)
|
|
}
|
|
}
|
|
|
|
return r0
|
|
}
|
|
|
|
// Start provides a mock function with given fields:
|
|
func (_m *MockDistributor) Start() error {
|
|
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:
|
|
func (_m *MockDistributor) Stop() error {
|
|
ret := _m.Called()
|
|
|
|
var r0 error
|
|
if rf, ok := ret.Get(0).(func() error); ok {
|
|
r0 = rf()
|
|
} else {
|
|
r0 = ret.Error(0)
|
|
}
|
|
|
|
return r0
|
|
}
|
|
|
|
// ToClientAPI provides a mock function with given fields:
|
|
func (_m *MockDistributor) ToClientAPI() chan ToClientAPI {
|
|
ret := _m.Called()
|
|
|
|
var r0 chan ToClientAPI
|
|
if rf, ok := ret.Get(0).(func() chan ToClientAPI); ok {
|
|
r0 = rf()
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).(chan ToClientAPI)
|
|
}
|
|
}
|
|
|
|
return r0
|
|
}
|