github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/network/p2p/mock/inspector_topic_oracle.go (about) 1 // Code generated by mockery v2.21.4. DO NOT EDIT. 2 3 package mockp2p 4 5 import mock "github.com/stretchr/testify/mock" 6 7 // InspectorTopicOracle is an autogenerated mock type for the InspectorTopicOracle type 8 type InspectorTopicOracle struct { 9 mock.Mock 10 } 11 12 // SetTopicOracle provides a mock function with given fields: topicOracle 13 func (_m *InspectorTopicOracle) SetTopicOracle(topicOracle func() []string) error { 14 ret := _m.Called(topicOracle) 15 16 var r0 error 17 if rf, ok := ret.Get(0).(func(func() []string) error); ok { 18 r0 = rf(topicOracle) 19 } else { 20 r0 = ret.Error(0) 21 } 22 23 return r0 24 } 25 26 type mockConstructorTestingTNewInspectorTopicOracle interface { 27 mock.TestingT 28 Cleanup(func()) 29 } 30 31 // NewInspectorTopicOracle creates a new instance of InspectorTopicOracle. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 32 func NewInspectorTopicOracle(t mockConstructorTestingTNewInspectorTopicOracle) *InspectorTopicOracle { 33 mock := &InspectorTopicOracle{} 34 mock.Mock.Test(t) 35 36 t.Cleanup(func() { mock.AssertExpectations(t) }) 37 38 return mock 39 }