github.com/anjalikarhana/fabric@v2.1.1+incompatible/orderer/common/cluster/mocks/block_verifier.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 common "github.com/hyperledger/fabric-protos-go/common" 7 mock "github.com/stretchr/testify/mock" 8 9 protoutil "github.com/hyperledger/fabric/protoutil" 10 ) 11 12 // BlockVerifier is an autogenerated mock type for the BlockVerifier type 13 type BlockVerifier struct { 14 mock.Mock 15 } 16 17 // VerifyBlockSignature provides a mock function with given fields: sd, config 18 func (_m *BlockVerifier) VerifyBlockSignature(sd []*protoutil.SignedData, config *common.ConfigEnvelope) error { 19 ret := _m.Called(sd, config) 20 21 var r0 error 22 if rf, ok := ret.Get(0).(func([]*protoutil.SignedData, *common.ConfigEnvelope) error); ok { 23 r0 = rf(sd, config) 24 } else { 25 r0 = ret.Error(0) 26 } 27 28 return r0 29 }