Files

96 lines
3.2 KiB
Go

// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/luxfi/evm/iface (interfaces: State)
// Package validators is a generated GoMock package.
package validators
import (
"context"
"reflect"
"github.com/luxfi/evm/iface"
gomock "go.uber.org/mock/gomock"
)
// MockState is a mock of State interface.
type MockState struct {
ctrl *gomock.Controller
recorder *MockStateMockRecorder
}
// MockStateMockRecorder is the mock recorder for MockState.
type MockStateMockRecorder struct {
mock *MockState
}
// NewState creates a new mock instance.
func NewState(ctrl *gomock.Controller) *MockState {
mock := &MockState{ctrl: ctrl}
mock.recorder = &MockStateMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockState) EXPECT() *MockStateMockRecorder {
return m.recorder
}
// GetCurrentHeight mocks base method.
func (m *MockState) GetCurrentHeight(ctx context.Context) (uint64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetCurrentHeight", ctx)
ret0, _ := ret[0].(uint64)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetCurrentHeight indicates an expected call of GetCurrentHeight.
func (mr *MockStateMockRecorder) GetCurrentHeight(ctx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCurrentHeight", reflect.TypeOf((*MockState)(nil).GetCurrentHeight), ctx)
}
// GetMinimumHeight mocks base method.
func (m *MockState) GetMinimumHeight(ctx context.Context) (uint64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetMinimumHeight", ctx)
ret0, _ := ret[0].(uint64)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetMinimumHeight indicates an expected call of GetMinimumHeight.
func (mr *MockStateMockRecorder) GetMinimumHeight(ctx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMinimumHeight", reflect.TypeOf((*MockState)(nil).GetMinimumHeight), ctx)
}
// GetSubnetID mocks base method.
func (m *MockState) GetSubnetID(ctx context.Context, chainID iface.ID) (iface.ID, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetSubnetID", ctx, chainID)
ret0, _ := ret[0].(iface.ID)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetSubnetID indicates an expected call of GetSubnetID.
func (mr *MockStateMockRecorder) GetSubnetID(ctx, chainID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSubnetID", reflect.TypeOf((*MockState)(nil).GetSubnetID), ctx, chainID)
}
// GetValidatorSet mocks base method.
func (m *MockState) GetValidatorSet(ctx context.Context, height uint64, subnetID iface.ID) (map[iface.NodeID]*iface.GetValidatorOutput, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetValidatorSet", ctx, height, subnetID)
ret0, _ := ret[0].(map[iface.NodeID]*iface.GetValidatorOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetValidatorSet indicates an expected call of GetValidatorSet.
func (mr *MockStateMockRecorder) GetValidatorSet(ctx, height, subnetID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetValidatorSet", reflect.TypeOf((*MockState)(nil).GetValidatorSet), ctx, height, subnetID)
}