github.com/palisadeinc/bor@v0.0.0-20230615125219-ab7196213d15/consensus/bor/span_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/ethereum/go-ethereum/consensus/bor (interfaces: Spanner)
     3  
     4  // Package bor is a generated GoMock package.
     5  package bor
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  
    11  	common "github.com/ethereum/go-ethereum/common"
    12  	span "github.com/ethereum/go-ethereum/consensus/bor/heimdall/span"
    13  	valset "github.com/ethereum/go-ethereum/consensus/bor/valset"
    14  	core "github.com/ethereum/go-ethereum/core"
    15  	state "github.com/ethereum/go-ethereum/core/state"
    16  	types "github.com/ethereum/go-ethereum/core/types"
    17  	rpc "github.com/ethereum/go-ethereum/rpc"
    18  	gomock "github.com/golang/mock/gomock"
    19  )
    20  
    21  // MockSpanner is a mock of Spanner interface.
    22  type MockSpanner struct {
    23  	ctrl     *gomock.Controller
    24  	recorder *MockSpannerMockRecorder
    25  }
    26  
    27  // MockSpannerMockRecorder is the mock recorder for MockSpanner.
    28  type MockSpannerMockRecorder struct {
    29  	mock *MockSpanner
    30  }
    31  
    32  // NewMockSpanner creates a new mock instance.
    33  func NewMockSpanner(ctrl *gomock.Controller) *MockSpanner {
    34  	mock := &MockSpanner{ctrl: ctrl}
    35  	mock.recorder = &MockSpannerMockRecorder{mock}
    36  	return mock
    37  }
    38  
    39  // EXPECT returns an object that allows the caller to indicate expected use.
    40  func (m *MockSpanner) EXPECT() *MockSpannerMockRecorder {
    41  	return m.recorder
    42  }
    43  
    44  // CommitSpan mocks base method.
    45  func (m *MockSpanner) CommitSpan(arg0 context.Context, arg1 span.HeimdallSpan, arg2 *state.StateDB, arg3 *types.Header, arg4 core.ChainContext) error {
    46  	m.ctrl.T.Helper()
    47  	ret := m.ctrl.Call(m, "CommitSpan", arg0, arg1, arg2, arg3, arg4)
    48  	ret0, _ := ret[0].(error)
    49  	return ret0
    50  }
    51  
    52  // CommitSpan indicates an expected call of CommitSpan.
    53  func (mr *MockSpannerMockRecorder) CommitSpan(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
    54  	mr.mock.ctrl.T.Helper()
    55  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CommitSpan", reflect.TypeOf((*MockSpanner)(nil).CommitSpan), arg0, arg1, arg2, arg3, arg4)
    56  }
    57  
    58  // GetCurrentSpan mocks base method.
    59  func (m *MockSpanner) GetCurrentSpan(arg0 context.Context, arg1 common.Hash) (*span.Span, error) {
    60  	m.ctrl.T.Helper()
    61  	ret := m.ctrl.Call(m, "GetCurrentSpan", arg0, arg1)
    62  	ret0, _ := ret[0].(*span.Span)
    63  	ret1, _ := ret[1].(error)
    64  	return ret0, ret1
    65  }
    66  
    67  // GetCurrentSpan indicates an expected call of GetCurrentSpan.
    68  func (mr *MockSpannerMockRecorder) GetCurrentSpan(arg0, arg1 interface{}) *gomock.Call {
    69  	mr.mock.ctrl.T.Helper()
    70  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCurrentSpan", reflect.TypeOf((*MockSpanner)(nil).GetCurrentSpan), arg0, arg1)
    71  }
    72  
    73  // GetCurrentValidatorsByBlockNrOrHash mocks base method.
    74  func (m *MockSpanner) GetCurrentValidatorsByBlockNrOrHash(arg0 context.Context, arg1 rpc.BlockNumberOrHash, arg2 uint64) ([]*valset.Validator, error) {
    75  	m.ctrl.T.Helper()
    76  	ret := m.ctrl.Call(m, "GetCurrentValidatorsByBlockNrOrHash", arg0, arg1, arg2)
    77  	ret0, _ := ret[0].([]*valset.Validator)
    78  	ret1, _ := ret[1].(error)
    79  	return ret0, ret1
    80  }
    81  
    82  // GetCurrentValidatorsByBlockNrOrHash indicates an expected call of GetCurrentValidatorsByBlockNrOrHash.
    83  func (mr *MockSpannerMockRecorder) GetCurrentValidatorsByBlockNrOrHash(arg0, arg1, arg2 interface{}) *gomock.Call {
    84  	mr.mock.ctrl.T.Helper()
    85  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCurrentValidatorsByBlockNrOrHash", reflect.TypeOf((*MockSpanner)(nil).GetCurrentValidatorsByBlockNrOrHash), arg0, arg1, arg2)
    86  }
    87  
    88  // GetCurrentValidatorsByHash mocks base method.
    89  func (m *MockSpanner) GetCurrentValidatorsByHash(arg0 context.Context, arg1 common.Hash, arg2 uint64) ([]*valset.Validator, error) {
    90  	m.ctrl.T.Helper()
    91  	ret := m.ctrl.Call(m, "GetCurrentValidatorsByHash", arg0, arg1, arg2)
    92  	ret0, _ := ret[0].([]*valset.Validator)
    93  	ret1, _ := ret[1].(error)
    94  	return ret0, ret1
    95  }
    96  
    97  // GetCurrentValidatorsByHash indicates an expected call of GetCurrentValidatorsByHash.
    98  func (mr *MockSpannerMockRecorder) GetCurrentValidatorsByHash(arg0, arg1, arg2 interface{}) *gomock.Call {
    99  	mr.mock.ctrl.T.Helper()
   100  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCurrentValidatorsByHash", reflect.TypeOf((*MockSpanner)(nil).GetCurrentValidatorsByHash), arg0, arg1, arg2)
   101  }