fabric: github.com/hyperledger/fabric/core/mocks/validator Index | Files

package validator

import "github.com/hyperledger/fabric/core/mocks/validator"

Index

Package Files

validator.go

type MockValidator Uses

type MockValidator struct {
    mock.Mock
}

MockValidator implements a mock validation useful for testing

func (*MockValidator) Validate Uses

func (m *MockValidator) Validate(block *common.Block) error

Validate does nothing, returning no error

type MockVsccValidator Uses

type MockVsccValidator struct {
}

MockVsccValidator is a mock implementation of the VSCC validation interface

func (*MockVsccValidator) VSCCValidateTx Uses

func (v *MockVsccValidator) VSCCValidateTx(seq int, payload *common.Payload, envBytes []byte, block *common.Block) (error, peer.TxValidationCode)

VSCCValidateTx does nothing

Package validator imports 3 packages (graph). Updated 2018-07-30. Refresh now. Tools for package owners.