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