github.com/MetalBlockchain/metalgo@v1.11.9/vms/proposervm/state/mock_state.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/MetalBlockchain/metalgo/vms/proposervm/state (interfaces: State)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -package=state -destination=vms/proposervm/state/mock_state.go github.com/MetalBlockchain/metalgo/vms/proposervm/state State
     7  //
     8  
     9  // Package state is a generated GoMock package.
    10  package state
    11  
    12  import (
    13  	reflect "reflect"
    14  
    15  	ids "github.com/MetalBlockchain/metalgo/ids"
    16  	choices "github.com/MetalBlockchain/metalgo/snow/choices"
    17  	block "github.com/MetalBlockchain/metalgo/vms/proposervm/block"
    18  	gomock "go.uber.org/mock/gomock"
    19  )
    20  
    21  // MockState is a mock of State interface.
    22  type MockState struct {
    23  	ctrl     *gomock.Controller
    24  	recorder *MockStateMockRecorder
    25  }
    26  
    27  // MockStateMockRecorder is the mock recorder for MockState.
    28  type MockStateMockRecorder struct {
    29  	mock *MockState
    30  }
    31  
    32  // NewMockState creates a new mock instance.
    33  func NewMockState(ctrl *gomock.Controller) *MockState {
    34  	mock := &MockState{ctrl: ctrl}
    35  	mock.recorder = &MockStateMockRecorder{mock}
    36  	return mock
    37  }
    38  
    39  // EXPECT returns an object that allows the caller to indicate expected use.
    40  func (m *MockState) EXPECT() *MockStateMockRecorder {
    41  	return m.recorder
    42  }
    43  
    44  // DeleteBlock mocks base method.
    45  func (m *MockState) DeleteBlock(arg0 ids.ID) error {
    46  	m.ctrl.T.Helper()
    47  	ret := m.ctrl.Call(m, "DeleteBlock", arg0)
    48  	ret0, _ := ret[0].(error)
    49  	return ret0
    50  }
    51  
    52  // DeleteBlock indicates an expected call of DeleteBlock.
    53  func (mr *MockStateMockRecorder) DeleteBlock(arg0 any) *gomock.Call {
    54  	mr.mock.ctrl.T.Helper()
    55  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteBlock", reflect.TypeOf((*MockState)(nil).DeleteBlock), arg0)
    56  }
    57  
    58  // DeleteBlockIDAtHeight mocks base method.
    59  func (m *MockState) DeleteBlockIDAtHeight(arg0 uint64) error {
    60  	m.ctrl.T.Helper()
    61  	ret := m.ctrl.Call(m, "DeleteBlockIDAtHeight", arg0)
    62  	ret0, _ := ret[0].(error)
    63  	return ret0
    64  }
    65  
    66  // DeleteBlockIDAtHeight indicates an expected call of DeleteBlockIDAtHeight.
    67  func (mr *MockStateMockRecorder) DeleteBlockIDAtHeight(arg0 any) *gomock.Call {
    68  	mr.mock.ctrl.T.Helper()
    69  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteBlockIDAtHeight", reflect.TypeOf((*MockState)(nil).DeleteBlockIDAtHeight), arg0)
    70  }
    71  
    72  // DeleteLastAccepted mocks base method.
    73  func (m *MockState) DeleteLastAccepted() error {
    74  	m.ctrl.T.Helper()
    75  	ret := m.ctrl.Call(m, "DeleteLastAccepted")
    76  	ret0, _ := ret[0].(error)
    77  	return ret0
    78  }
    79  
    80  // DeleteLastAccepted indicates an expected call of DeleteLastAccepted.
    81  func (mr *MockStateMockRecorder) DeleteLastAccepted() *gomock.Call {
    82  	mr.mock.ctrl.T.Helper()
    83  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteLastAccepted", reflect.TypeOf((*MockState)(nil).DeleteLastAccepted))
    84  }
    85  
    86  // GetBlock mocks base method.
    87  func (m *MockState) GetBlock(arg0 ids.ID) (block.Block, choices.Status, error) {
    88  	m.ctrl.T.Helper()
    89  	ret := m.ctrl.Call(m, "GetBlock", arg0)
    90  	ret0, _ := ret[0].(block.Block)
    91  	ret1, _ := ret[1].(choices.Status)
    92  	ret2, _ := ret[2].(error)
    93  	return ret0, ret1, ret2
    94  }
    95  
    96  // GetBlock indicates an expected call of GetBlock.
    97  func (mr *MockStateMockRecorder) GetBlock(arg0 any) *gomock.Call {
    98  	mr.mock.ctrl.T.Helper()
    99  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlock", reflect.TypeOf((*MockState)(nil).GetBlock), arg0)
   100  }
   101  
   102  // GetBlockIDAtHeight mocks base method.
   103  func (m *MockState) GetBlockIDAtHeight(arg0 uint64) (ids.ID, error) {
   104  	m.ctrl.T.Helper()
   105  	ret := m.ctrl.Call(m, "GetBlockIDAtHeight", arg0)
   106  	ret0, _ := ret[0].(ids.ID)
   107  	ret1, _ := ret[1].(error)
   108  	return ret0, ret1
   109  }
   110  
   111  // GetBlockIDAtHeight indicates an expected call of GetBlockIDAtHeight.
   112  func (mr *MockStateMockRecorder) GetBlockIDAtHeight(arg0 any) *gomock.Call {
   113  	mr.mock.ctrl.T.Helper()
   114  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlockIDAtHeight", reflect.TypeOf((*MockState)(nil).GetBlockIDAtHeight), arg0)
   115  }
   116  
   117  // GetForkHeight mocks base method.
   118  func (m *MockState) GetForkHeight() (uint64, error) {
   119  	m.ctrl.T.Helper()
   120  	ret := m.ctrl.Call(m, "GetForkHeight")
   121  	ret0, _ := ret[0].(uint64)
   122  	ret1, _ := ret[1].(error)
   123  	return ret0, ret1
   124  }
   125  
   126  // GetForkHeight indicates an expected call of GetForkHeight.
   127  func (mr *MockStateMockRecorder) GetForkHeight() *gomock.Call {
   128  	mr.mock.ctrl.T.Helper()
   129  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetForkHeight", reflect.TypeOf((*MockState)(nil).GetForkHeight))
   130  }
   131  
   132  // GetLastAccepted mocks base method.
   133  func (m *MockState) GetLastAccepted() (ids.ID, error) {
   134  	m.ctrl.T.Helper()
   135  	ret := m.ctrl.Call(m, "GetLastAccepted")
   136  	ret0, _ := ret[0].(ids.ID)
   137  	ret1, _ := ret[1].(error)
   138  	return ret0, ret1
   139  }
   140  
   141  // GetLastAccepted indicates an expected call of GetLastAccepted.
   142  func (mr *MockStateMockRecorder) GetLastAccepted() *gomock.Call {
   143  	mr.mock.ctrl.T.Helper()
   144  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLastAccepted", reflect.TypeOf((*MockState)(nil).GetLastAccepted))
   145  }
   146  
   147  // GetMinimumHeight mocks base method.
   148  func (m *MockState) GetMinimumHeight() (uint64, error) {
   149  	m.ctrl.T.Helper()
   150  	ret := m.ctrl.Call(m, "GetMinimumHeight")
   151  	ret0, _ := ret[0].(uint64)
   152  	ret1, _ := ret[1].(error)
   153  	return ret0, ret1
   154  }
   155  
   156  // GetMinimumHeight indicates an expected call of GetMinimumHeight.
   157  func (mr *MockStateMockRecorder) GetMinimumHeight() *gomock.Call {
   158  	mr.mock.ctrl.T.Helper()
   159  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMinimumHeight", reflect.TypeOf((*MockState)(nil).GetMinimumHeight))
   160  }
   161  
   162  // PutBlock mocks base method.
   163  func (m *MockState) PutBlock(arg0 block.Block, arg1 choices.Status) error {
   164  	m.ctrl.T.Helper()
   165  	ret := m.ctrl.Call(m, "PutBlock", arg0, arg1)
   166  	ret0, _ := ret[0].(error)
   167  	return ret0
   168  }
   169  
   170  // PutBlock indicates an expected call of PutBlock.
   171  func (mr *MockStateMockRecorder) PutBlock(arg0, arg1 any) *gomock.Call {
   172  	mr.mock.ctrl.T.Helper()
   173  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutBlock", reflect.TypeOf((*MockState)(nil).PutBlock), arg0, arg1)
   174  }
   175  
   176  // SetBlockIDAtHeight mocks base method.
   177  func (m *MockState) SetBlockIDAtHeight(arg0 uint64, arg1 ids.ID) error {
   178  	m.ctrl.T.Helper()
   179  	ret := m.ctrl.Call(m, "SetBlockIDAtHeight", arg0, arg1)
   180  	ret0, _ := ret[0].(error)
   181  	return ret0
   182  }
   183  
   184  // SetBlockIDAtHeight indicates an expected call of SetBlockIDAtHeight.
   185  func (mr *MockStateMockRecorder) SetBlockIDAtHeight(arg0, arg1 any) *gomock.Call {
   186  	mr.mock.ctrl.T.Helper()
   187  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBlockIDAtHeight", reflect.TypeOf((*MockState)(nil).SetBlockIDAtHeight), arg0, arg1)
   188  }
   189  
   190  // SetForkHeight mocks base method.
   191  func (m *MockState) SetForkHeight(arg0 uint64) error {
   192  	m.ctrl.T.Helper()
   193  	ret := m.ctrl.Call(m, "SetForkHeight", arg0)
   194  	ret0, _ := ret[0].(error)
   195  	return ret0
   196  }
   197  
   198  // SetForkHeight indicates an expected call of SetForkHeight.
   199  func (mr *MockStateMockRecorder) SetForkHeight(arg0 any) *gomock.Call {
   200  	mr.mock.ctrl.T.Helper()
   201  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetForkHeight", reflect.TypeOf((*MockState)(nil).SetForkHeight), arg0)
   202  }
   203  
   204  // SetLastAccepted mocks base method.
   205  func (m *MockState) SetLastAccepted(arg0 ids.ID) error {
   206  	m.ctrl.T.Helper()
   207  	ret := m.ctrl.Call(m, "SetLastAccepted", arg0)
   208  	ret0, _ := ret[0].(error)
   209  	return ret0
   210  }
   211  
   212  // SetLastAccepted indicates an expected call of SetLastAccepted.
   213  func (mr *MockStateMockRecorder) SetLastAccepted(arg0 any) *gomock.Call {
   214  	mr.mock.ctrl.T.Helper()
   215  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLastAccepted", reflect.TypeOf((*MockState)(nil).SetLastAccepted), arg0)
   216  }