1 Star 0 Fork 0

小庄 / fabric

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
transaction_validator.go 1011 Bytes
一键复制 编辑 原始数据 按行查看 历史
// Code generated by mockery v1.0.0. DO NOT EDIT.
package mocks
import (
common "github.com/hyperledger/fabric-protos-go/common"
errors "github.com/hyperledger/fabric/common/errors"
mock "github.com/stretchr/testify/mock"
)
// TransactionValidator is an autogenerated mock type for the TransactionValidator type
type TransactionValidator struct {
mock.Mock
}
// Validate provides a mock function with given fields: block, namespace, txPosition, actionPosition, policy
func (_m *TransactionValidator) Validate(block *common.Block, namespace string, txPosition int, actionPosition int, policy []byte) errors.TxValidationError {
ret := _m.Called(block, namespace, txPosition, actionPosition, policy)
var r0 errors.TxValidationError
if rf, ok := ret.Get(0).(func(*common.Block, string, int, int, []byte) errors.TxValidationError); ok {
r0 = rf(block, namespace, txPosition, actionPosition, policy)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(errors.TxValidationError)
}
}
return r0
}
1
https://gitee.com/zhuanglicheng/fabric.git
git@gitee.com:zhuanglicheng/fabric.git
zhuanglicheng
fabric
fabric
v2.1.1

搜索帮助

53164aa7 5694891 3bd8fe86 5694891