github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/storage/mock/ledger_verifier.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 mock "github.com/stretchr/testify/mock" 8 ) 9 10 // LedgerVerifier is an autogenerated mock type for the LedgerVerifier type 11 type LedgerVerifier struct { 12 mock.Mock 13 } 14 15 // VerifyRegistersProof provides a mock function with given fields: registerIDs, stateCommitment, values, proof 16 func (_m *LedgerVerifier) VerifyRegistersProof(registerIDs []flow.RegisterID, stateCommitment flow.StateCommitment, values [][]byte, proof [][]byte) (bool, error) { 17 ret := _m.Called(registerIDs, stateCommitment, values, proof) 18 19 var r0 bool 20 var r1 error 21 if rf, ok := ret.Get(0).(func([]flow.RegisterID, flow.StateCommitment, [][]byte, [][]byte) (bool, error)); ok { 22 return rf(registerIDs, stateCommitment, values, proof) 23 } 24 if rf, ok := ret.Get(0).(func([]flow.RegisterID, flow.StateCommitment, [][]byte, [][]byte) bool); ok { 25 r0 = rf(registerIDs, stateCommitment, values, proof) 26 } else { 27 r0 = ret.Get(0).(bool) 28 } 29 30 if rf, ok := ret.Get(1).(func([]flow.RegisterID, flow.StateCommitment, [][]byte, [][]byte) error); ok { 31 r1 = rf(registerIDs, stateCommitment, values, proof) 32 } else { 33 r1 = ret.Error(1) 34 } 35 36 return r0, r1 37 } 38 39 type mockConstructorTestingTNewLedgerVerifier interface { 40 mock.TestingT 41 Cleanup(func()) 42 } 43 44 // NewLedgerVerifier creates a new instance of LedgerVerifier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 45 func NewLedgerVerifier(t mockConstructorTestingTNewLedgerVerifier) *LedgerVerifier { 46 mock := &LedgerVerifier{} 47 mock.Mock.Test(t) 48 49 t.Cleanup(func() { mock.AssertExpectations(t) }) 50 51 return mock 52 }