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