github.com/klaytn/klaytn@v1.12.1/work/mocks/txpool_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/klaytn/klaytn/work (interfaces: TxPool)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	big "math/big"
     9  	reflect "reflect"
    10  
    11  	gomock "github.com/golang/mock/gomock"
    12  	blockchain "github.com/klaytn/klaytn/blockchain"
    13  	types "github.com/klaytn/klaytn/blockchain/types"
    14  	common "github.com/klaytn/klaytn/common"
    15  	event "github.com/klaytn/klaytn/event"
    16  )
    17  
    18  // MockTxPool is a mock of TxPool interface.
    19  type MockTxPool struct {
    20  	ctrl     *gomock.Controller
    21  	recorder *MockTxPoolMockRecorder
    22  }
    23  
    24  // MockTxPoolMockRecorder is the mock recorder for MockTxPool.
    25  type MockTxPoolMockRecorder struct {
    26  	mock *MockTxPool
    27  }
    28  
    29  // NewMockTxPool creates a new mock instance.
    30  func NewMockTxPool(ctrl *gomock.Controller) *MockTxPool {
    31  	mock := &MockTxPool{ctrl: ctrl}
    32  	mock.recorder = &MockTxPoolMockRecorder{mock}
    33  	return mock
    34  }
    35  
    36  // EXPECT returns an object that allows the caller to indicate expected use.
    37  func (m *MockTxPool) EXPECT() *MockTxPoolMockRecorder {
    38  	return m.recorder
    39  }
    40  
    41  // AddLocal mocks base method.
    42  func (m *MockTxPool) AddLocal(arg0 *types.Transaction) error {
    43  	m.ctrl.T.Helper()
    44  	ret := m.ctrl.Call(m, "AddLocal", arg0)
    45  	ret0, _ := ret[0].(error)
    46  	return ret0
    47  }
    48  
    49  // AddLocal indicates an expected call of AddLocal.
    50  func (mr *MockTxPoolMockRecorder) AddLocal(arg0 interface{}) *gomock.Call {
    51  	mr.mock.ctrl.T.Helper()
    52  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddLocal", reflect.TypeOf((*MockTxPool)(nil).AddLocal), arg0)
    53  }
    54  
    55  // CachedPendingTxsByCount mocks base method.
    56  func (m *MockTxPool) CachedPendingTxsByCount(arg0 int) types.Transactions {
    57  	m.ctrl.T.Helper()
    58  	ret := m.ctrl.Call(m, "CachedPendingTxsByCount", arg0)
    59  	ret0, _ := ret[0].(types.Transactions)
    60  	return ret0
    61  }
    62  
    63  // CachedPendingTxsByCount indicates an expected call of CachedPendingTxsByCount.
    64  func (mr *MockTxPoolMockRecorder) CachedPendingTxsByCount(arg0 interface{}) *gomock.Call {
    65  	mr.mock.ctrl.T.Helper()
    66  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CachedPendingTxsByCount", reflect.TypeOf((*MockTxPool)(nil).CachedPendingTxsByCount), arg0)
    67  }
    68  
    69  // Content mocks base method.
    70  func (m *MockTxPool) Content() (map[common.Address]types.Transactions, map[common.Address]types.Transactions) {
    71  	m.ctrl.T.Helper()
    72  	ret := m.ctrl.Call(m, "Content")
    73  	ret0, _ := ret[0].(map[common.Address]types.Transactions)
    74  	ret1, _ := ret[1].(map[common.Address]types.Transactions)
    75  	return ret0, ret1
    76  }
    77  
    78  // Content indicates an expected call of Content.
    79  func (mr *MockTxPoolMockRecorder) Content() *gomock.Call {
    80  	mr.mock.ctrl.T.Helper()
    81  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Content", reflect.TypeOf((*MockTxPool)(nil).Content))
    82  }
    83  
    84  // GasPrice mocks base method.
    85  func (m *MockTxPool) GasPrice() *big.Int {
    86  	m.ctrl.T.Helper()
    87  	ret := m.ctrl.Call(m, "GasPrice")
    88  	ret0, _ := ret[0].(*big.Int)
    89  	return ret0
    90  }
    91  
    92  // GasPrice indicates an expected call of GasPrice.
    93  func (mr *MockTxPoolMockRecorder) GasPrice() *gomock.Call {
    94  	mr.mock.ctrl.T.Helper()
    95  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GasPrice", reflect.TypeOf((*MockTxPool)(nil).GasPrice))
    96  }
    97  
    98  // Get mocks base method.
    99  func (m *MockTxPool) Get(arg0 common.Hash) *types.Transaction {
   100  	m.ctrl.T.Helper()
   101  	ret := m.ctrl.Call(m, "Get", arg0)
   102  	ret0, _ := ret[0].(*types.Transaction)
   103  	return ret0
   104  }
   105  
   106  // Get indicates an expected call of Get.
   107  func (mr *MockTxPoolMockRecorder) Get(arg0 interface{}) *gomock.Call {
   108  	mr.mock.ctrl.T.Helper()
   109  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockTxPool)(nil).Get), arg0)
   110  }
   111  
   112  // GetPendingNonce mocks base method.
   113  func (m *MockTxPool) GetPendingNonce(arg0 common.Address) uint64 {
   114  	m.ctrl.T.Helper()
   115  	ret := m.ctrl.Call(m, "GetPendingNonce", arg0)
   116  	ret0, _ := ret[0].(uint64)
   117  	return ret0
   118  }
   119  
   120  // GetPendingNonce indicates an expected call of GetPendingNonce.
   121  func (mr *MockTxPoolMockRecorder) GetPendingNonce(arg0 interface{}) *gomock.Call {
   122  	mr.mock.ctrl.T.Helper()
   123  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPendingNonce", reflect.TypeOf((*MockTxPool)(nil).GetPendingNonce), arg0)
   124  }
   125  
   126  // HandleTxMsg mocks base method.
   127  func (m *MockTxPool) HandleTxMsg(arg0 types.Transactions) {
   128  	m.ctrl.T.Helper()
   129  	m.ctrl.Call(m, "HandleTxMsg", arg0)
   130  }
   131  
   132  // HandleTxMsg indicates an expected call of HandleTxMsg.
   133  func (mr *MockTxPoolMockRecorder) HandleTxMsg(arg0 interface{}) *gomock.Call {
   134  	mr.mock.ctrl.T.Helper()
   135  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandleTxMsg", reflect.TypeOf((*MockTxPool)(nil).HandleTxMsg), arg0)
   136  }
   137  
   138  // Pending mocks base method.
   139  func (m *MockTxPool) Pending() (map[common.Address]types.Transactions, error) {
   140  	m.ctrl.T.Helper()
   141  	ret := m.ctrl.Call(m, "Pending")
   142  	ret0, _ := ret[0].(map[common.Address]types.Transactions)
   143  	ret1, _ := ret[1].(error)
   144  	return ret0, ret1
   145  }
   146  
   147  // Pending indicates an expected call of Pending.
   148  func (mr *MockTxPoolMockRecorder) Pending() *gomock.Call {
   149  	mr.mock.ctrl.T.Helper()
   150  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Pending", reflect.TypeOf((*MockTxPool)(nil).Pending))
   151  }
   152  
   153  // SetGasPrice mocks base method.
   154  func (m *MockTxPool) SetGasPrice(arg0 *big.Int) {
   155  	m.ctrl.T.Helper()
   156  	m.ctrl.Call(m, "SetGasPrice", arg0)
   157  }
   158  
   159  // SetGasPrice indicates an expected call of SetGasPrice.
   160  func (mr *MockTxPoolMockRecorder) SetGasPrice(arg0 interface{}) *gomock.Call {
   161  	mr.mock.ctrl.T.Helper()
   162  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetGasPrice", reflect.TypeOf((*MockTxPool)(nil).SetGasPrice), arg0)
   163  }
   164  
   165  // StartSpamThrottler mocks base method.
   166  func (m *MockTxPool) StartSpamThrottler(arg0 *blockchain.ThrottlerConfig) error {
   167  	m.ctrl.T.Helper()
   168  	ret := m.ctrl.Call(m, "StartSpamThrottler", arg0)
   169  	ret0, _ := ret[0].(error)
   170  	return ret0
   171  }
   172  
   173  // StartSpamThrottler indicates an expected call of StartSpamThrottler.
   174  func (mr *MockTxPoolMockRecorder) StartSpamThrottler(arg0 interface{}) *gomock.Call {
   175  	mr.mock.ctrl.T.Helper()
   176  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartSpamThrottler", reflect.TypeOf((*MockTxPool)(nil).StartSpamThrottler), arg0)
   177  }
   178  
   179  // Stats mocks base method.
   180  func (m *MockTxPool) Stats() (int, int) {
   181  	m.ctrl.T.Helper()
   182  	ret := m.ctrl.Call(m, "Stats")
   183  	ret0, _ := ret[0].(int)
   184  	ret1, _ := ret[1].(int)
   185  	return ret0, ret1
   186  }
   187  
   188  // Stats indicates an expected call of Stats.
   189  func (mr *MockTxPoolMockRecorder) Stats() *gomock.Call {
   190  	mr.mock.ctrl.T.Helper()
   191  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stats", reflect.TypeOf((*MockTxPool)(nil).Stats))
   192  }
   193  
   194  // Stop mocks base method.
   195  func (m *MockTxPool) Stop() {
   196  	m.ctrl.T.Helper()
   197  	m.ctrl.Call(m, "Stop")
   198  }
   199  
   200  // Stop indicates an expected call of Stop.
   201  func (mr *MockTxPoolMockRecorder) Stop() *gomock.Call {
   202  	mr.mock.ctrl.T.Helper()
   203  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockTxPool)(nil).Stop))
   204  }
   205  
   206  // StopSpamThrottler mocks base method.
   207  func (m *MockTxPool) StopSpamThrottler() {
   208  	m.ctrl.T.Helper()
   209  	m.ctrl.Call(m, "StopSpamThrottler")
   210  }
   211  
   212  // StopSpamThrottler indicates an expected call of StopSpamThrottler.
   213  func (mr *MockTxPoolMockRecorder) StopSpamThrottler() *gomock.Call {
   214  	mr.mock.ctrl.T.Helper()
   215  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopSpamThrottler", reflect.TypeOf((*MockTxPool)(nil).StopSpamThrottler))
   216  }
   217  
   218  // SubscribeNewTxsEvent mocks base method.
   219  func (m *MockTxPool) SubscribeNewTxsEvent(arg0 chan<- blockchain.NewTxsEvent) event.Subscription {
   220  	m.ctrl.T.Helper()
   221  	ret := m.ctrl.Call(m, "SubscribeNewTxsEvent", arg0)
   222  	ret0, _ := ret[0].(event.Subscription)
   223  	return ret0
   224  }
   225  
   226  // SubscribeNewTxsEvent indicates an expected call of SubscribeNewTxsEvent.
   227  func (mr *MockTxPoolMockRecorder) SubscribeNewTxsEvent(arg0 interface{}) *gomock.Call {
   228  	mr.mock.ctrl.T.Helper()
   229  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubscribeNewTxsEvent", reflect.TypeOf((*MockTxPool)(nil).SubscribeNewTxsEvent), arg0)
   230  }