github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/network/mocknetwork/misbehavior_report_consumer.go (about) 1 // Code generated by mockery v2.21.4. DO NOT EDIT. 2 3 package mocknetwork 4 5 import ( 6 channels "github.com/onflow/flow-go/network/channels" 7 mock "github.com/stretchr/testify/mock" 8 9 network "github.com/onflow/flow-go/network" 10 ) 11 12 // MisbehaviorReportConsumer is an autogenerated mock type for the MisbehaviorReportConsumer type 13 type MisbehaviorReportConsumer struct { 14 mock.Mock 15 } 16 17 // ReportMisbehaviorOnChannel provides a mock function with given fields: channel, report 18 func (_m *MisbehaviorReportConsumer) ReportMisbehaviorOnChannel(channel channels.Channel, report network.MisbehaviorReport) { 19 _m.Called(channel, report) 20 } 21 22 type mockConstructorTestingTNewMisbehaviorReportConsumer interface { 23 mock.TestingT 24 Cleanup(func()) 25 } 26 27 // NewMisbehaviorReportConsumer creates a new instance of MisbehaviorReportConsumer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 28 func NewMisbehaviorReportConsumer(t mockConstructorTestingTNewMisbehaviorReportConsumer) *MisbehaviorReportConsumer { 29 mock := &MisbehaviorReportConsumer{} 30 mock.Mock.Test(t) 31 32 t.Cleanup(func() { mock.AssertExpectations(t) }) 33 34 return mock 35 }