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