github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/network/mocknetwork/misbehavior_report_manager.go (about) 1 // Code generated by mockery v2.21.4. DO NOT EDIT. 2 3 package mocknetwork 4 5 import ( 6 irrecoverable "github.com/onflow/flow-go/module/irrecoverable" 7 channels "github.com/onflow/flow-go/network/channels" 8 9 mock "github.com/stretchr/testify/mock" 10 11 network "github.com/onflow/flow-go/network" 12 ) 13 14 // MisbehaviorReportManager is an autogenerated mock type for the MisbehaviorReportManager type 15 type MisbehaviorReportManager struct { 16 mock.Mock 17 } 18 19 // Done provides a mock function with given fields: 20 func (_m *MisbehaviorReportManager) Done() <-chan struct{} { 21 ret := _m.Called() 22 23 var r0 <-chan struct{} 24 if rf, ok := ret.Get(0).(func() <-chan struct{}); ok { 25 r0 = rf() 26 } else { 27 if ret.Get(0) != nil { 28 r0 = ret.Get(0).(<-chan struct{}) 29 } 30 } 31 32 return r0 33 } 34 35 // HandleMisbehaviorReport provides a mock function with given fields: _a0, _a1 36 func (_m *MisbehaviorReportManager) HandleMisbehaviorReport(_a0 channels.Channel, _a1 network.MisbehaviorReport) { 37 _m.Called(_a0, _a1) 38 } 39 40 // Ready provides a mock function with given fields: 41 func (_m *MisbehaviorReportManager) Ready() <-chan struct{} { 42 ret := _m.Called() 43 44 var r0 <-chan struct{} 45 if rf, ok := ret.Get(0).(func() <-chan struct{}); ok { 46 r0 = rf() 47 } else { 48 if ret.Get(0) != nil { 49 r0 = ret.Get(0).(<-chan struct{}) 50 } 51 } 52 53 return r0 54 } 55 56 // Start provides a mock function with given fields: _a0 57 func (_m *MisbehaviorReportManager) Start(_a0 irrecoverable.SignalerContext) { 58 _m.Called(_a0) 59 } 60 61 type mockConstructorTestingTNewMisbehaviorReportManager interface { 62 mock.TestingT 63 Cleanup(func()) 64 } 65 66 // NewMisbehaviorReportManager creates a new instance of MisbehaviorReportManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 67 func NewMisbehaviorReportManager(t mockConstructorTestingTNewMisbehaviorReportManager) *MisbehaviorReportManager { 68 mock := &MisbehaviorReportManager{} 69 mock.Mock.Test(t) 70 71 t.Cleanup(func() { mock.AssertExpectations(t) }) 72 73 return mock 74 }