39 lines
931 B
Go
39 lines
931 B
Go
// Code generated by mockery v2.12.2. DO NOT EDIT.
|
|
|
|
package rate
|
|
|
|
import (
|
|
testing "testing"
|
|
|
|
mock "github.com/stretchr/testify/mock"
|
|
)
|
|
|
|
// MockLeaderStatusProvider is an autogenerated mock type for the LeaderStatusProvider type
|
|
type MockLeaderStatusProvider struct {
|
|
mock.Mock
|
|
}
|
|
|
|
// IsLeader provides a mock function with given fields:
|
|
func (_m *MockLeaderStatusProvider) IsLeader() bool {
|
|
ret := _m.Called()
|
|
|
|
var r0 bool
|
|
if rf, ok := ret.Get(0).(func() bool); ok {
|
|
r0 = rf()
|
|
} else {
|
|
r0 = ret.Get(0).(bool)
|
|
}
|
|
|
|
return r0
|
|
}
|
|
|
|
// NewMockLeaderStatusProvider creates a new instance of MockLeaderStatusProvider. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
|
|
func NewMockLeaderStatusProvider(t testing.TB) *MockLeaderStatusProvider {
|
|
mock := &MockLeaderStatusProvider{}
|
|
mock.Mock.Test(t)
|
|
|
|
t.Cleanup(func() { mock.AssertExpectations(t) })
|
|
|
|
return mock
|
|
}
|