mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-27 13:27:26 +08:00
86 lines
1.8 KiB
Go
86 lines
1.8 KiB
Go
// Code generated by mockery. DO NOT EDIT.
|
|
|
|
package mocks
|
|
|
|
import (
|
|
mock "github.com/stretchr/testify/mock"
|
|
lifecycle "source.quilibrium.com/quilibrium/monorepo/lifecycle"
|
|
)
|
|
|
|
// Component is an autogenerated mock type for the Component type
|
|
type Component struct {
|
|
mock.Mock
|
|
}
|
|
|
|
// Done provides a mock function with no fields
|
|
func (_m *Component) Done() <-chan struct{} {
|
|
ret := _m.Called()
|
|
|
|
if len(ret) == 0 {
|
|
panic("no return value specified for Done")
|
|
}
|
|
|
|
var r0 <-chan struct{}
|
|
if rf, ok := ret.Get(0).(func() <-chan struct{}); ok {
|
|
r0 = rf()
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).(<-chan struct{})
|
|
}
|
|
}
|
|
|
|
return r0
|
|
}
|
|
|
|
// Ready provides a mock function with no fields
|
|
func (_m *Component) Ready() <-chan struct{} {
|
|
ret := _m.Called()
|
|
|
|
if len(ret) == 0 {
|
|
panic("no return value specified for Ready")
|
|
}
|
|
|
|
var r0 <-chan struct{}
|
|
if rf, ok := ret.Get(0).(func() <-chan struct{}); ok {
|
|
r0 = rf()
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).(<-chan struct{})
|
|
}
|
|
}
|
|
|
|
return r0
|
|
}
|
|
|
|
// Start provides a mock function with given fields: _a0
|
|
func (_m *Component) Start(_a0 lifecycle.SignalerContext) error {
|
|
ret := _m.Called(_a0)
|
|
|
|
if len(ret) == 0 {
|
|
panic("no return value specified for Start")
|
|
}
|
|
|
|
var r0 error
|
|
if rf, ok := ret.Get(0).(func(lifecycle.SignalerContext) error); ok {
|
|
r0 = rf(_a0)
|
|
} else {
|
|
r0 = ret.Error(0)
|
|
}
|
|
|
|
return r0
|
|
}
|
|
|
|
// NewComponent creates a new instance of Component. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
|
// The first argument is typically a *testing.T value.
|
|
func NewComponent(t interface {
|
|
mock.TestingT
|
|
Cleanup(func())
|
|
}) *Component {
|
|
mock := &Component{}
|
|
mock.Mock.Test(t)
|
|
|
|
t.Cleanup(func() { mock.AssertExpectations(t) })
|
|
|
|
return mock
|
|
}
|