github.com/MetalBlockchain/metalgo@v1.11.9/snow/validators/mock_state.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/MetalBlockchain/metalgo/snow/validators (interfaces: State) 3 // 4 // Generated by this command: 5 // 6 // mockgen -package=validators -destination=snow/validators/mock_state.go github.com/MetalBlockchain/metalgo/snow/validators State 7 // 8 9 // Package validators is a generated GoMock package. 10 package validators 11 12 import ( 13 context "context" 14 reflect "reflect" 15 16 ids "github.com/MetalBlockchain/metalgo/ids" 17 gomock "go.uber.org/mock/gomock" 18 ) 19 20 // MockState is a mock of State interface. 21 type MockState struct { 22 ctrl *gomock.Controller 23 recorder *MockStateMockRecorder 24 } 25 26 // MockStateMockRecorder is the mock recorder for MockState. 27 type MockStateMockRecorder struct { 28 mock *MockState 29 } 30 31 // NewMockState creates a new mock instance. 32 func NewMockState(ctrl *gomock.Controller) *MockState { 33 mock := &MockState{ctrl: ctrl} 34 mock.recorder = &MockStateMockRecorder{mock} 35 return mock 36 } 37 38 // EXPECT returns an object that allows the caller to indicate expected use. 39 func (m *MockState) EXPECT() *MockStateMockRecorder { 40 return m.recorder 41 } 42 43 // GetCurrentHeight mocks base method. 44 func (m *MockState) GetCurrentHeight(arg0 context.Context) (uint64, error) { 45 m.ctrl.T.Helper() 46 ret := m.ctrl.Call(m, "GetCurrentHeight", arg0) 47 ret0, _ := ret[0].(uint64) 48 ret1, _ := ret[1].(error) 49 return ret0, ret1 50 } 51 52 // GetCurrentHeight indicates an expected call of GetCurrentHeight. 53 func (mr *MockStateMockRecorder) GetCurrentHeight(arg0 any) *gomock.Call { 54 mr.mock.ctrl.T.Helper() 55 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCurrentHeight", reflect.TypeOf((*MockState)(nil).GetCurrentHeight), arg0) 56 } 57 58 // GetMinimumHeight mocks base method. 59 func (m *MockState) GetMinimumHeight(arg0 context.Context) (uint64, error) { 60 m.ctrl.T.Helper() 61 ret := m.ctrl.Call(m, "GetMinimumHeight", arg0) 62 ret0, _ := ret[0].(uint64) 63 ret1, _ := ret[1].(error) 64 return ret0, ret1 65 } 66 67 // GetMinimumHeight indicates an expected call of GetMinimumHeight. 68 func (mr *MockStateMockRecorder) GetMinimumHeight(arg0 any) *gomock.Call { 69 mr.mock.ctrl.T.Helper() 70 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMinimumHeight", reflect.TypeOf((*MockState)(nil).GetMinimumHeight), arg0) 71 } 72 73 // GetSubnetID mocks base method. 74 func (m *MockState) GetSubnetID(arg0 context.Context, arg1 ids.ID) (ids.ID, error) { 75 m.ctrl.T.Helper() 76 ret := m.ctrl.Call(m, "GetSubnetID", arg0, arg1) 77 ret0, _ := ret[0].(ids.ID) 78 ret1, _ := ret[1].(error) 79 return ret0, ret1 80 } 81 82 // GetSubnetID indicates an expected call of GetSubnetID. 83 func (mr *MockStateMockRecorder) GetSubnetID(arg0, arg1 any) *gomock.Call { 84 mr.mock.ctrl.T.Helper() 85 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSubnetID", reflect.TypeOf((*MockState)(nil).GetSubnetID), arg0, arg1) 86 } 87 88 // GetValidatorSet mocks base method. 89 func (m *MockState) GetValidatorSet(arg0 context.Context, arg1 uint64, arg2 ids.ID) (map[ids.NodeID]*GetValidatorOutput, error) { 90 m.ctrl.T.Helper() 91 ret := m.ctrl.Call(m, "GetValidatorSet", arg0, arg1, arg2) 92 ret0, _ := ret[0].(map[ids.NodeID]*GetValidatorOutput) 93 ret1, _ := ret[1].(error) 94 return ret0, ret1 95 } 96 97 // GetValidatorSet indicates an expected call of GetValidatorSet. 98 func (mr *MockStateMockRecorder) GetValidatorSet(arg0, arg1, arg2 any) *gomock.Call { 99 mr.mock.ctrl.T.Helper() 100 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetValidatorSet", reflect.TypeOf((*MockState)(nil).GetValidatorSet), arg0, arg1, arg2) 101 }