mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
regenerate mocks to fix tests
This commit is contained in:
parent
a23701f2d4
commit
cdf58273c9
3 changed files with 18 additions and 54 deletions
|
|
@ -9,7 +9,6 @@ import (
|
|||
reflect "reflect"
|
||||
|
||||
hexutil "github.com/ethereum/go-ethereum/common/hexutil"
|
||||
state "github.com/ethereum/go-ethereum/core/state"
|
||||
ethapi "github.com/ethereum/go-ethereum/internal/ethapi"
|
||||
rpc "github.com/ethereum/go-ethereum/rpc"
|
||||
gomock "github.com/golang/mock/gomock"
|
||||
|
|
@ -52,18 +51,3 @@ func (mr *MockCallerMockRecorder) Call(arg0, arg1, arg2, arg3, arg4 interface{})
|
|||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Call", reflect.TypeOf((*MockCaller)(nil).Call), arg0, arg1, arg2, arg3, arg4)
|
||||
}
|
||||
|
||||
// CallWithState mocks base method.
|
||||
func (m *MockCaller) CallWithState(arg0 context.Context, arg1 ethapi.TransactionArgs, arg2 *rpc.BlockNumberOrHash, arg3 *state.StateDB, arg4 *ethapi.StateOverride, arg5 *ethapi.BlockOverrides) (hexutil.Bytes, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "CallWithState", arg0, arg1, arg2, arg3, arg4, arg5)
|
||||
ret0, _ := ret[0].(hexutil.Bytes)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// CallWithState indicates an expected call of CallWithState.
|
||||
func (mr *MockCallerMockRecorder) CallWithState(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CallWithState", reflect.TypeOf((*MockCaller)(nil).CallWithState), arg0, arg1, arg2, arg3, arg4, arg5)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ import (
|
|||
params "github.com/ethereum/go-ethereum/params"
|
||||
rpc "github.com/ethereum/go-ethereum/rpc"
|
||||
gomock "github.com/golang/mock/gomock"
|
||||
"github.com/ethereum/go-ethereum/core/state"
|
||||
)
|
||||
|
||||
// MockBackend is a mock of Backend interface.
|
||||
|
|
@ -205,25 +204,6 @@ func (mr *MockBackendMockRecorder) HeaderByNumber(arg0, arg1 interface{}) *gomoc
|
|||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HeaderByNumber", reflect.TypeOf((*MockBackend)(nil).HeaderByNumber), arg0, arg1)
|
||||
}
|
||||
|
||||
|
||||
// todo: @anshalshukla - check method implemenetation
|
||||
// Pending mocks base method.
|
||||
func (m *MockBackend) Pending() (*types.Block, types.Receipts, *state.StateDB) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "Pending")
|
||||
ret0, _ := ret[0].(*types.Block)
|
||||
ret1, _ := ret[1].(types.Receipts)
|
||||
ret2, _ := ret[2].(*state.StateDB)
|
||||
return ret0, ret1, ret2
|
||||
}
|
||||
|
||||
// todo: @anshalshukla - check method implemenetation
|
||||
// Pending indicates an expected call of Pending.
|
||||
func (mr *MockBackendMockRecorder) Pending() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Pending", reflect.TypeOf((*MockBackend)(nil).Pending))
|
||||
}
|
||||
|
||||
// ServiceFilter mocks base method.
|
||||
func (m *MockBackend) ServiceFilter(arg0 context.Context, arg1 *bloombits.MatcherSession) {
|
||||
m.ctrl.T.Helper()
|
||||
|
|
|
|||
|
|
@ -49,20 +49,6 @@ func (mr *MockDatabaseMockRecorder) Ancient(arg0, arg1 interface{}) *gomock.Call
|
|||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ancient", reflect.TypeOf((*MockDatabase)(nil).Ancient), arg0, arg1)
|
||||
}
|
||||
|
||||
// AncientOffSet mocks base method.
|
||||
func (m *MockDatabase) AncientOffSet() uint64 {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "AncientOffSet")
|
||||
ret0, _ := ret[0].(uint64)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// AncientOffSet indicates an expected call of AncientOffSet.
|
||||
func (mr *MockDatabaseMockRecorder) AncientOffSet() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AncientOffSet", reflect.TypeOf((*MockDatabase)(nil).AncientOffSet))
|
||||
}
|
||||
|
||||
// AncientDatadir mocks base method.
|
||||
func (m *MockDatabase) AncientDatadir() (string, error) {
|
||||
m.ctrl.T.Helper()
|
||||
|
|
@ -78,6 +64,20 @@ func (mr *MockDatabaseMockRecorder) AncientDatadir() *gomock.Call {
|
|||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AncientDatadir", reflect.TypeOf((*MockDatabase)(nil).AncientDatadir))
|
||||
}
|
||||
|
||||
// AncientOffSet mocks base method.
|
||||
func (m *MockDatabase) AncientOffSet() uint64 {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "AncientOffSet")
|
||||
ret0, _ := ret[0].(uint64)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// AncientOffSet indicates an expected call of AncientOffSet.
|
||||
func (mr *MockDatabaseMockRecorder) AncientOffSet() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AncientOffSet", reflect.TypeOf((*MockDatabase)(nil).AncientOffSet))
|
||||
}
|
||||
|
||||
// AncientRange mocks base method.
|
||||
func (m *MockDatabase) AncientRange(arg0 string, arg1, arg2, arg3 uint64) ([][]byte, error) {
|
||||
m.ctrl.T.Helper()
|
||||
|
|
@ -340,18 +340,18 @@ func (mr *MockDatabaseMockRecorder) ReadAncients(arg0 interface{}) *gomock.Call
|
|||
}
|
||||
|
||||
// Stat mocks base method.
|
||||
func (m *MockDatabase) Stat(arg0 string) (string, error) {
|
||||
func (m *MockDatabase) Stat() (string, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "Stat", arg0)
|
||||
ret := m.ctrl.Call(m, "Stat")
|
||||
ret0, _ := ret[0].(string)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// Stat indicates an expected call of Stat.
|
||||
func (mr *MockDatabaseMockRecorder) Stat(arg0 interface{}) *gomock.Call {
|
||||
func (mr *MockDatabaseMockRecorder) Stat() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stat", reflect.TypeOf((*MockDatabase)(nil).Stat), arg0)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stat", reflect.TypeOf((*MockDatabase)(nil).Stat))
|
||||
}
|
||||
|
||||
// Sync mocks base method.
|
||||
|
|
|
|||
Loading…
Reference in a new issue