github.com/aergoio/aergo@v1.3.1/p2p/p2pmock/mock_txnotice.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: txnotice.go
     3  
     4  // Package p2pmock is a generated GoMock package.
     5  package p2pmock
     6  
     7  import (
     8  	types "github.com/aergoio/aergo/types"
     9  	gomock "github.com/golang/mock/gomock"
    10  	reflect "reflect"
    11  )
    12  
    13  // MockTxNoticeTracer is a mock of TxNoticeTracer interface
    14  type MockTxNoticeTracer struct {
    15  	ctrl     *gomock.Controller
    16  	recorder *MockTxNoticeTracerMockRecorder
    17  }
    18  
    19  // MockTxNoticeTracerMockRecorder is the mock recorder for MockTxNoticeTracer
    20  type MockTxNoticeTracerMockRecorder struct {
    21  	mock *MockTxNoticeTracer
    22  }
    23  
    24  // NewMockTxNoticeTracer creates a new mock instance
    25  func NewMockTxNoticeTracer(ctrl *gomock.Controller) *MockTxNoticeTracer {
    26  	mock := &MockTxNoticeTracer{ctrl: ctrl}
    27  	mock.recorder = &MockTxNoticeTracerMockRecorder{mock}
    28  	return mock
    29  }
    30  
    31  // EXPECT returns an object that allows the caller to indicate expected use
    32  func (m *MockTxNoticeTracer) EXPECT() *MockTxNoticeTracerMockRecorder {
    33  	return m.recorder
    34  }
    35  
    36  // RegisterTxNotice mocks base method
    37  func (m *MockTxNoticeTracer) RegisterTxNotice(txIDs []types.TxID, cnt int, alreadySent []types.PeerID) {
    38  	m.ctrl.T.Helper()
    39  	m.ctrl.Call(m, "RegisterTxNotice", txIDs, cnt)
    40  }
    41  
    42  // RegisterTxNotice indicates an expected call of RegisterTxNotice
    43  func (mr *MockTxNoticeTracerMockRecorder) RegisterTxNotice(txIDs, cnt interface{}) *gomock.Call {
    44  	mr.mock.ctrl.T.Helper()
    45  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterTxNotice", reflect.TypeOf((*MockTxNoticeTracer)(nil).RegisterTxNotice), txIDs, cnt)
    46  }
    47  
    48  // ReportSend mocks base method
    49  func (m *MockTxNoticeTracer) ReportSend(txIDs []types.TxID, peerID types.PeerID) {
    50  	m.ctrl.T.Helper()
    51  	m.ctrl.Call(m, "ReportSend", txIDs, peerID)
    52  }
    53  
    54  // ReportSend indicates an expected call of ReportSend
    55  func (mr *MockTxNoticeTracerMockRecorder) ReportSend(txIDs, peerID interface{}) *gomock.Call {
    56  	mr.mock.ctrl.T.Helper()
    57  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReportSend", reflect.TypeOf((*MockTxNoticeTracer)(nil).ReportSend), txIDs, peerID)
    58  }
    59  
    60  // ReportNotSend mocks base method
    61  func (m *MockTxNoticeTracer) ReportNotSend(txIDs []types.TxID, cnt int) {
    62  	m.ctrl.T.Helper()
    63  	m.ctrl.Call(m, "ReportNotSend", txIDs, cnt)
    64  }
    65  
    66  // ReportNotSend indicates an expected call of ReportNotSend
    67  func (mr *MockTxNoticeTracerMockRecorder) ReportNotSend(txIDs, cnt interface{}) *gomock.Call {
    68  	mr.mock.ctrl.T.Helper()
    69  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReportNotSend", reflect.TypeOf((*MockTxNoticeTracer)(nil).ReportNotSend), txIDs, cnt)
    70  }