github.com/koko1123/flow-go-1@v0.29.6/consensus/hotstuff/mocks/on_qc_created.go (about) 1 // Code generated by mockery v2.13.1. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 flow "github.com/koko1123/flow-go-1/model/flow" 7 8 mock "github.com/stretchr/testify/mock" 9 ) 10 11 // OnQCCreated is an autogenerated mock type for the OnQCCreated type 12 type OnQCCreated struct { 13 mock.Mock 14 } 15 16 // Execute provides a mock function with given fields: _a0 17 func (_m *OnQCCreated) Execute(_a0 *flow.QuorumCertificate) { 18 _m.Called(_a0) 19 } 20 21 type mockConstructorTestingTNewOnQCCreated interface { 22 mock.TestingT 23 Cleanup(func()) 24 } 25 26 // NewOnQCCreated creates a new instance of OnQCCreated. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 27 func NewOnQCCreated(t mockConstructorTestingTNewOnQCCreated) *OnQCCreated { 28 mock := &OnQCCreated{} 29 mock.Mock.Test(t) 30 31 t.Cleanup(func() { mock.AssertExpectations(t) }) 32 33 return mock 34 }