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