Versions in this module Expand all Collapse all v0 v0.2.0 Nov 1, 2018 Changes in this version + const EventChannelBufferSize + var ErrChaincodeNotExists = errors.New(`chaincode not exists`) + var ErrUnknownFromArgsType = errors.New(`unknown args type to cckit.MockStub.From func`) + func TransformCreator(txCreator ...interface{}) (mspID string, certPEM []byte, err error) + type CreatorTransformer func(...interface{}) (mspID string, certPEM []byte, err error) + type MockStub struct + ChaincodeEvent *peer.ChaincodeEvent + ClearCreatorAfterInvoke bool + InvokablesFull map[string]*MockStub + func NewMockStub(name string, cc shim.Chaincode) *MockStub + func (stub *MockStub) ClearEvents() + func (stub *MockStub) EventSubscription() chan *peer.ChaincodeEvent + func (stub *MockStub) From(txCreator ...interface{}) *MockStub + func (stub *MockStub) GetArgs() [][]byte + func (stub *MockStub) GetCreator() ([]byte, error) + func (stub *MockStub) GetFunctionAndParameters() (function string, params []string) + func (stub *MockStub) GetStringArgs() []string + func (stub *MockStub) Init(iargs ...interface{}) peer.Response + func (stub *MockStub) Invoke(funcName string, iargs ...interface{}) peer.Response + func (stub *MockStub) InvokeChaincode(chaincodeName string, args [][]byte, channel string) peer.Response + func (stub *MockStub) MockCreator(mspID string, certPEM []byte) + func (stub *MockStub) MockInit(uuid string, args [][]byte) peer.Response + func (stub *MockStub) MockInvoke(uuid string, args [][]byte) peer.Response + func (stub *MockStub) MockPeerChaincode(invokableChaincodeName string, otherStub *MockStub) + func (stub *MockStub) MockedPeerChancodes() []string + func (stub *MockStub) Query(funcName string, iargs ...interface{}) peer.Response + func (stub *MockStub) RegisterCreatorTransformer(creatorTransformer CreatorTransformer) *MockStub + func (stub *MockStub) SetArgs(args [][]byte) + func (stub *MockStub) SetEvent(name string, payload []byte) error