github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/engine/consensus/mock/compliance.go (about) 1 // Code generated by mockery v2.21.4. DO NOT EDIT. 2 3 package mock 4 5 import ( 6 flow "github.com/onflow/flow-go/model/flow" 7 irrecoverable "github.com/onflow/flow-go/module/irrecoverable" 8 9 messages "github.com/onflow/flow-go/model/messages" 10 11 mock "github.com/stretchr/testify/mock" 12 ) 13 14 // Compliance is an autogenerated mock type for the Compliance type 15 type Compliance struct { 16 mock.Mock 17 } 18 19 // Done provides a mock function with given fields: 20 func (_m *Compliance) Done() <-chan struct{} { 21 ret := _m.Called() 22 23 var r0 <-chan struct{} 24 if rf, ok := ret.Get(0).(func() <-chan struct{}); ok { 25 r0 = rf() 26 } else { 27 if ret.Get(0) != nil { 28 r0 = ret.Get(0).(<-chan struct{}) 29 } 30 } 31 32 return r0 33 } 34 35 // OnBlockProposal provides a mock function with given fields: proposal 36 func (_m *Compliance) OnBlockProposal(proposal flow.Slashable[*messages.BlockProposal]) { 37 _m.Called(proposal) 38 } 39 40 // OnSyncedBlocks provides a mock function with given fields: blocks 41 func (_m *Compliance) OnSyncedBlocks(blocks flow.Slashable[[]*messages.BlockProposal]) { 42 _m.Called(blocks) 43 } 44 45 // Ready provides a mock function with given fields: 46 func (_m *Compliance) Ready() <-chan struct{} { 47 ret := _m.Called() 48 49 var r0 <-chan struct{} 50 if rf, ok := ret.Get(0).(func() <-chan struct{}); ok { 51 r0 = rf() 52 } else { 53 if ret.Get(0) != nil { 54 r0 = ret.Get(0).(<-chan struct{}) 55 } 56 } 57 58 return r0 59 } 60 61 // Start provides a mock function with given fields: _a0 62 func (_m *Compliance) Start(_a0 irrecoverable.SignalerContext) { 63 _m.Called(_a0) 64 } 65 66 type mockConstructorTestingTNewCompliance interface { 67 mock.TestingT 68 Cleanup(func()) 69 } 70 71 // NewCompliance creates a new instance of Compliance. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 72 func NewCompliance(t mockConstructorTestingTNewCompliance) *Compliance { 73 mock := &Compliance{} 74 mock.Mock.Test(t) 75 76 t.Cleanup(func() { mock.AssertExpectations(t) }) 77 78 return mock 79 }