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