mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
* Limit state sync by gas * Added logging for state-sync total gas usage * Added number of event-records in log * Minor Changes * Minor Fix * Adding individual gasUsed * Minor Fix * it works * fix tests * log wiggle and delay with block number * log delays as numbers * linters * fix tests * restore linters for the project * fix linters * fix * fix * fix * linters * generation * fix tests * remove heimdall wrapper response * linters * remove possible collisions * remove possible collisions * remove possible collisions * tests for unique address generation * generalize set * bor miner tests got restored * fixes after CR * final step and mining test * fix * fix e2e * more tests for Heimdall requests * fix linters Co-authored-by: Ferran <ferranbt@protonmail.com> Co-authored-by: Shivam Sharma <shivam691999@gmail.com>
53 lines
1.6 KiB
Go
53 lines
1.6 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/ethereum/go-ethereum/consensus/bor/api (interfaces: Caller)
|
|
|
|
// Package api is a generated GoMock package.
|
|
package api
|
|
|
|
import (
|
|
context "context"
|
|
reflect "reflect"
|
|
|
|
hexutil "github.com/ethereum/go-ethereum/common/hexutil"
|
|
ethapi "github.com/ethereum/go-ethereum/internal/ethapi"
|
|
rpc "github.com/ethereum/go-ethereum/rpc"
|
|
gomock "github.com/golang/mock/gomock"
|
|
)
|
|
|
|
// MockCaller is a mock of Caller interface.
|
|
type MockCaller struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockCallerMockRecorder
|
|
}
|
|
|
|
// MockCallerMockRecorder is the mock recorder for MockCaller.
|
|
type MockCallerMockRecorder struct {
|
|
mock *MockCaller
|
|
}
|
|
|
|
// NewMockCaller creates a new mock instance.
|
|
func NewMockCaller(ctrl *gomock.Controller) *MockCaller {
|
|
mock := &MockCaller{ctrl: ctrl}
|
|
mock.recorder = &MockCallerMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockCaller) EXPECT() *MockCallerMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Call mocks base method.
|
|
func (m *MockCaller) Call(arg0 context.Context, arg1 ethapi.TransactionArgs, arg2 rpc.BlockNumberOrHash, arg3 *ethapi.StateOverride) (hexutil.Bytes, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Call", arg0, arg1, arg2, arg3)
|
|
ret0, _ := ret[0].(hexutil.Bytes)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Call indicates an expected call of Call.
|
|
func (mr *MockCallerMockRecorder) Call(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Call", reflect.TypeOf((*MockCaller)(nil).Call), arg0, arg1, arg2, arg3)
|
|
}
|