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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: listmanager.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  	time "time"
    12  )
    13  
    14  // MockListManager is a mock of ListManager interface
    15  type MockListManager struct {
    16  	ctrl     *gomock.Controller
    17  	recorder *MockListManagerMockRecorder
    18  }
    19  
    20  // MockListManagerMockRecorder is the mock recorder for MockListManager
    21  type MockListManagerMockRecorder struct {
    22  	mock *MockListManager
    23  }
    24  
    25  // NewMockListManager creates a new mock instance
    26  func NewMockListManager(ctrl *gomock.Controller) *MockListManager {
    27  	mock := &MockListManager{ctrl: ctrl}
    28  	mock.recorder = &MockListManagerMockRecorder{mock}
    29  	return mock
    30  }
    31  
    32  // EXPECT returns an object that allows the caller to indicate expected use
    33  func (m *MockListManager) EXPECT() *MockListManagerMockRecorder {
    34  	return m.recorder
    35  }
    36  
    37  // Start mocks base method
    38  func (m *MockListManager) Start() {
    39  	m.ctrl.T.Helper()
    40  	m.ctrl.Call(m, "Start")
    41  }
    42  
    43  // Start indicates an expected call of Start
    44  func (mr *MockListManagerMockRecorder) Start() *gomock.Call {
    45  	mr.mock.ctrl.T.Helper()
    46  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockListManager)(nil).Start))
    47  }
    48  
    49  // Stop mocks base method
    50  func (m *MockListManager) Stop() {
    51  	m.ctrl.T.Helper()
    52  	m.ctrl.Call(m, "Stop")
    53  }
    54  
    55  // Stop indicates an expected call of Stop
    56  func (mr *MockListManagerMockRecorder) Stop() *gomock.Call {
    57  	mr.mock.ctrl.T.Helper()
    58  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockListManager)(nil).Stop))
    59  }
    60  
    61  // IsBanned mocks base method
    62  func (m *MockListManager) IsBanned(addr string, pid types.PeerID) (bool, time.Time) {
    63  	m.ctrl.T.Helper()
    64  	ret := m.ctrl.Call(m, "IsBanned", addr, pid)
    65  	ret0, _ := ret[0].(bool)
    66  	ret1, _ := ret[1].(time.Time)
    67  	return ret0, ret1
    68  }
    69  
    70  // IsBanned indicates an expected call of IsBanned
    71  func (mr *MockListManagerMockRecorder) IsBanned(addr, pid interface{}) *gomock.Call {
    72  	mr.mock.ctrl.T.Helper()
    73  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsBanned", reflect.TypeOf((*MockListManager)(nil).IsBanned), addr, pid)
    74  }
    75  
    76  // RefineList mocks base method
    77  func (m *MockListManager) RefineList() {
    78  	m.ctrl.T.Helper()
    79  	m.ctrl.Call(m, "RefineList")
    80  }
    81  
    82  // RefineList indicates an expected call of RefineList
    83  func (mr *MockListManagerMockRecorder) RefineList() *gomock.Call {
    84  	mr.mock.ctrl.T.Helper()
    85  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RefineList", reflect.TypeOf((*MockListManager)(nil).RefineList))
    86  }
    87  
    88  // Summary mocks base method
    89  func (m *MockListManager) Summary() map[string]interface{} {
    90  	m.ctrl.T.Helper()
    91  	ret := m.ctrl.Call(m, "Summary")
    92  	ret0, _ := ret[0].(map[string]interface{})
    93  	return ret0
    94  }
    95  
    96  // Summary indicates an expected call of Summary
    97  func (mr *MockListManagerMockRecorder) Summary() *gomock.Call {
    98  	mr.mock.ctrl.T.Helper()
    99  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Summary", reflect.TypeOf((*MockListManager)(nil).Summary))
   100  }