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