Documentation ¶
Index ¶
- type MockSealOperator
- func (_m *MockSealOperator) Channel() types.PChannelInfo
- func (_m *MockSealOperator) EXPECT() *MockSealOperator_Expecter
- func (_m *MockSealOperator) IsNoWaitSeal() bool
- func (_m *MockSealOperator) MustSealSegments(ctx context.Context, infos ...stats.SegmentBelongs)
- func (_m *MockSealOperator) TryToSealSegments(ctx context.Context, infos ...stats.SegmentBelongs)
- func (_m *MockSealOperator) TryToSealWaitedSegment(ctx context.Context)
- type MockSealOperator_Channel_Call
- func (_c *MockSealOperator_Channel_Call) Return(_a0 types.PChannelInfo) *MockSealOperator_Channel_Call
- func (_c *MockSealOperator_Channel_Call) Run(run func()) *MockSealOperator_Channel_Call
- func (_c *MockSealOperator_Channel_Call) RunAndReturn(run func() types.PChannelInfo) *MockSealOperator_Channel_Call
- type MockSealOperator_Expecter
- func (_e *MockSealOperator_Expecter) Channel() *MockSealOperator_Channel_Call
- func (_e *MockSealOperator_Expecter) IsNoWaitSeal() *MockSealOperator_IsNoWaitSeal_Call
- func (_e *MockSealOperator_Expecter) MustSealSegments(ctx interface{}, infos ...interface{}) *MockSealOperator_MustSealSegments_Call
- func (_e *MockSealOperator_Expecter) TryToSealSegments(ctx interface{}, infos ...interface{}) *MockSealOperator_TryToSealSegments_Call
- func (_e *MockSealOperator_Expecter) TryToSealWaitedSegment(ctx interface{}) *MockSealOperator_TryToSealWaitedSegment_Call
- type MockSealOperator_IsNoWaitSeal_Call
- func (_c *MockSealOperator_IsNoWaitSeal_Call) Return(_a0 bool) *MockSealOperator_IsNoWaitSeal_Call
- func (_c *MockSealOperator_IsNoWaitSeal_Call) Run(run func()) *MockSealOperator_IsNoWaitSeal_Call
- func (_c *MockSealOperator_IsNoWaitSeal_Call) RunAndReturn(run func() bool) *MockSealOperator_IsNoWaitSeal_Call
- type MockSealOperator_MustSealSegments_Call
- func (_c *MockSealOperator_MustSealSegments_Call) Return() *MockSealOperator_MustSealSegments_Call
- func (_c *MockSealOperator_MustSealSegments_Call) Run(run func(ctx context.Context, infos ...stats.SegmentBelongs)) *MockSealOperator_MustSealSegments_Call
- func (_c *MockSealOperator_MustSealSegments_Call) RunAndReturn(run func(context.Context, ...stats.SegmentBelongs)) *MockSealOperator_MustSealSegments_Call
- type MockSealOperator_TryToSealSegments_Call
- func (_c *MockSealOperator_TryToSealSegments_Call) Return() *MockSealOperator_TryToSealSegments_Call
- func (_c *MockSealOperator_TryToSealSegments_Call) Run(run func(ctx context.Context, infos ...stats.SegmentBelongs)) *MockSealOperator_TryToSealSegments_Call
- func (_c *MockSealOperator_TryToSealSegments_Call) RunAndReturn(run func(context.Context, ...stats.SegmentBelongs)) *MockSealOperator_TryToSealSegments_Call
- type MockSealOperator_TryToSealWaitedSegment_Call
- func (_c *MockSealOperator_TryToSealWaitedSegment_Call) Return() *MockSealOperator_TryToSealWaitedSegment_Call
- func (_c *MockSealOperator_TryToSealWaitedSegment_Call) Run(run func(ctx context.Context)) *MockSealOperator_TryToSealWaitedSegment_Call
- func (_c *MockSealOperator_TryToSealWaitedSegment_Call) RunAndReturn(run func(context.Context)) *MockSealOperator_TryToSealWaitedSegment_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSealOperator ¶
MockSealOperator is an autogenerated mock type for the SealOperator type
func NewMockSealOperator ¶
func NewMockSealOperator(t interface { mock.TestingT Cleanup(func()) }) *MockSealOperator
NewMockSealOperator creates a new instance of MockSealOperator. 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 (*MockSealOperator) Channel ¶
func (_m *MockSealOperator) Channel() types.PChannelInfo
Channel provides a mock function with given fields:
func (*MockSealOperator) EXPECT ¶
func (_m *MockSealOperator) EXPECT() *MockSealOperator_Expecter
func (*MockSealOperator) IsNoWaitSeal ¶
func (_m *MockSealOperator) IsNoWaitSeal() bool
IsNoWaitSeal provides a mock function with given fields:
func (*MockSealOperator) MustSealSegments ¶
func (_m *MockSealOperator) MustSealSegments(ctx context.Context, infos ...stats.SegmentBelongs)
MustSealSegments provides a mock function with given fields: ctx, infos
func (*MockSealOperator) TryToSealSegments ¶
func (_m *MockSealOperator) TryToSealSegments(ctx context.Context, infos ...stats.SegmentBelongs)
TryToSealSegments provides a mock function with given fields: ctx, infos
func (*MockSealOperator) TryToSealWaitedSegment ¶
func (_m *MockSealOperator) TryToSealWaitedSegment(ctx context.Context)
TryToSealWaitedSegment provides a mock function with given fields: ctx
type MockSealOperator_Channel_Call ¶
MockSealOperator_Channel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Channel'
func (*MockSealOperator_Channel_Call) Return ¶
func (_c *MockSealOperator_Channel_Call) Return(_a0 types.PChannelInfo) *MockSealOperator_Channel_Call
func (*MockSealOperator_Channel_Call) Run ¶
func (_c *MockSealOperator_Channel_Call) Run(run func()) *MockSealOperator_Channel_Call
func (*MockSealOperator_Channel_Call) RunAndReturn ¶
func (_c *MockSealOperator_Channel_Call) RunAndReturn(run func() types.PChannelInfo) *MockSealOperator_Channel_Call
type MockSealOperator_Expecter ¶
type MockSealOperator_Expecter struct {
// contains filtered or unexported fields
}
func (*MockSealOperator_Expecter) Channel ¶
func (_e *MockSealOperator_Expecter) Channel() *MockSealOperator_Channel_Call
Channel is a helper method to define mock.On call
func (*MockSealOperator_Expecter) IsNoWaitSeal ¶
func (_e *MockSealOperator_Expecter) IsNoWaitSeal() *MockSealOperator_IsNoWaitSeal_Call
IsNoWaitSeal is a helper method to define mock.On call
func (*MockSealOperator_Expecter) MustSealSegments ¶
func (_e *MockSealOperator_Expecter) MustSealSegments(ctx interface{}, infos ...interface{}) *MockSealOperator_MustSealSegments_Call
MustSealSegments is a helper method to define mock.On call
- ctx context.Context
- infos ...stats.SegmentBelongs
func (*MockSealOperator_Expecter) TryToSealSegments ¶
func (_e *MockSealOperator_Expecter) TryToSealSegments(ctx interface{}, infos ...interface{}) *MockSealOperator_TryToSealSegments_Call
TryToSealSegments is a helper method to define mock.On call
- ctx context.Context
- infos ...stats.SegmentBelongs
func (*MockSealOperator_Expecter) TryToSealWaitedSegment ¶
func (_e *MockSealOperator_Expecter) TryToSealWaitedSegment(ctx interface{}) *MockSealOperator_TryToSealWaitedSegment_Call
TryToSealWaitedSegment is a helper method to define mock.On call
- ctx context.Context
type MockSealOperator_IsNoWaitSeal_Call ¶
MockSealOperator_IsNoWaitSeal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsNoWaitSeal'
func (*MockSealOperator_IsNoWaitSeal_Call) Return ¶
func (_c *MockSealOperator_IsNoWaitSeal_Call) Return(_a0 bool) *MockSealOperator_IsNoWaitSeal_Call
func (*MockSealOperator_IsNoWaitSeal_Call) Run ¶
func (_c *MockSealOperator_IsNoWaitSeal_Call) Run(run func()) *MockSealOperator_IsNoWaitSeal_Call
func (*MockSealOperator_IsNoWaitSeal_Call) RunAndReturn ¶
func (_c *MockSealOperator_IsNoWaitSeal_Call) RunAndReturn(run func() bool) *MockSealOperator_IsNoWaitSeal_Call
type MockSealOperator_MustSealSegments_Call ¶
MockSealOperator_MustSealSegments_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MustSealSegments'
func (*MockSealOperator_MustSealSegments_Call) Return ¶
func (_c *MockSealOperator_MustSealSegments_Call) Return() *MockSealOperator_MustSealSegments_Call
func (*MockSealOperator_MustSealSegments_Call) Run ¶
func (_c *MockSealOperator_MustSealSegments_Call) Run(run func(ctx context.Context, infos ...stats.SegmentBelongs)) *MockSealOperator_MustSealSegments_Call
func (*MockSealOperator_MustSealSegments_Call) RunAndReturn ¶
func (_c *MockSealOperator_MustSealSegments_Call) RunAndReturn(run func(context.Context, ...stats.SegmentBelongs)) *MockSealOperator_MustSealSegments_Call
type MockSealOperator_TryToSealSegments_Call ¶
MockSealOperator_TryToSealSegments_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TryToSealSegments'
func (*MockSealOperator_TryToSealSegments_Call) Return ¶
func (_c *MockSealOperator_TryToSealSegments_Call) Return() *MockSealOperator_TryToSealSegments_Call
func (*MockSealOperator_TryToSealSegments_Call) Run ¶
func (_c *MockSealOperator_TryToSealSegments_Call) Run(run func(ctx context.Context, infos ...stats.SegmentBelongs)) *MockSealOperator_TryToSealSegments_Call
func (*MockSealOperator_TryToSealSegments_Call) RunAndReturn ¶
func (_c *MockSealOperator_TryToSealSegments_Call) RunAndReturn(run func(context.Context, ...stats.SegmentBelongs)) *MockSealOperator_TryToSealSegments_Call
type MockSealOperator_TryToSealWaitedSegment_Call ¶
MockSealOperator_TryToSealWaitedSegment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TryToSealWaitedSegment'
func (*MockSealOperator_TryToSealWaitedSegment_Call) Return ¶
func (_c *MockSealOperator_TryToSealWaitedSegment_Call) Return() *MockSealOperator_TryToSealWaitedSegment_Call
func (*MockSealOperator_TryToSealWaitedSegment_Call) Run ¶
func (_c *MockSealOperator_TryToSealWaitedSegment_Call) Run(run func(ctx context.Context)) *MockSealOperator_TryToSealWaitedSegment_Call
func (*MockSealOperator_TryToSealWaitedSegment_Call) RunAndReturn ¶
func (_c *MockSealOperator_TryToSealWaitedSegment_Call) RunAndReturn(run func(context.Context)) *MockSealOperator_TryToSealWaitedSegment_Call