mocks

package
v2.0.0-alpha+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectionResources

type CollectionResources struct {
	mock.Mock
}

CollectionResources is an autogenerated mock type for the CollectionResources type

func (*CollectionResources) CollectionValidationInfo

func (_m *CollectionResources) CollectionValidationInfo(chaincodeName string, collectionName string, state validation.State) ([]byte, error, error)

CollectionValidationInfo provides a mock function with given fields: chaincodeName, collectionName, state

type IdentityDeserializer

type IdentityDeserializer struct {
	mock.Mock
}

IdentityDeserializer is an autogenerated mock type for the IdentityDeserializer type

func (*IdentityDeserializer) DeserializeIdentity

func (_m *IdentityDeserializer) DeserializeIdentity(serializedIdentity []byte) (validation.Identity, error)

DeserializeIdentity provides a mock function with given fields: serializedIdentity

type StateBasedValidator

type StateBasedValidator struct {
	mock.Mock
}

StateBasedValidator is an autogenerated mock type for the StateBasedValidator type

func (*StateBasedValidator) PostValidate

func (_m *StateBasedValidator) PostValidate(cc string, blockNum uint64, txNum uint64, err error)

PostValidate provides a mock function with given fields: cc, blockNum, txNum, err

func (*StateBasedValidator) PreValidate

func (_m *StateBasedValidator) PreValidate(txNum uint64, block *common.Block)

PreValidate provides a mock function with given fields: txNum, block

func (*StateBasedValidator) Validate

func (_m *StateBasedValidator) Validate(cc string, blockNum uint64, txNum uint64, rwset []byte, prp []byte, ep []byte, endorsements []*peer.Endorsement) errors.TxValidationError

Validate provides a mock function with given fields: cc, blockNum, txNum, rwset, prp, ep, endorsements

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL