github.com/koko1123/flow-go-1@v0.29.6/network/p2p/mock/score_option_builder.go (about) 1 // Code generated by mockery v2.13.1. DO NOT EDIT. 2 3 package mockp2p 4 5 import ( 6 mock "github.com/stretchr/testify/mock" 7 8 pubsub "github.com/libp2p/go-libp2p-pubsub" 9 ) 10 11 // ScoreOptionBuilder is an autogenerated mock type for the ScoreOptionBuilder type 12 type ScoreOptionBuilder struct { 13 mock.Mock 14 } 15 16 // BuildFlowPubSubScoreOption provides a mock function with given fields: 17 func (_m *ScoreOptionBuilder) BuildFlowPubSubScoreOption() pubsub.Option { 18 ret := _m.Called() 19 20 var r0 pubsub.Option 21 if rf, ok := ret.Get(0).(func() pubsub.Option); ok { 22 r0 = rf() 23 } else { 24 if ret.Get(0) != nil { 25 r0 = ret.Get(0).(pubsub.Option) 26 } 27 } 28 29 return r0 30 } 31 32 type mockConstructorTestingTNewScoreOptionBuilder interface { 33 mock.TestingT 34 Cleanup(func()) 35 } 36 37 // NewScoreOptionBuilder creates a new instance of ScoreOptionBuilder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 38 func NewScoreOptionBuilder(t mockConstructorTestingTNewScoreOptionBuilder) *ScoreOptionBuilder { 39 mock := &ScoreOptionBuilder{} 40 mock.Mock.Test(t) 41 42 t.Cleanup(func() { mock.AssertExpectations(t) }) 43 44 return mock 45 }