github.com/ava-labs/avalanchego@v1.11.11/vms/proposervm/state/statemock/state.go (about)

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