github.com/lzy4123/fabric@v2.1.1+incompatible/core/chaincode/persistence/mock/metadata_provider.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 package mock 4 5 import mock "github.com/stretchr/testify/mock" 6 7 // MetadataProvider is an autogenerated mock type for the MetadataProvider type 8 type MetadataProvider struct { 9 mock.Mock 10 } 11 12 // GetDBArtifacts provides a mock function with given fields: codePackage 13 func (_m *MetadataProvider) GetDBArtifacts(codePackage []byte) ([]byte, error) { 14 ret := _m.Called(codePackage) 15 16 var r0 []byte 17 if rf, ok := ret.Get(0).(func([]byte) []byte); ok { 18 r0 = rf(codePackage) 19 } else { 20 if ret.Get(0) != nil { 21 r0 = ret.Get(0).([]byte) 22 } 23 } 24 25 var r1 error 26 if rf, ok := ret.Get(1).(func([]byte) error); ok { 27 r1 = rf(codePackage) 28 } else { 29 r1 = ret.Error(1) 30 } 31 32 return r0, r1 33 }