Versions in this module Expand all Collapse all v1 v1.4.6 May 20, 2020 Changes in this version + type MockCCComm struct + func (s *MockCCComm) CloseSend() error + func (s *MockCCComm) GetRecvStream() chan *pb.ChaincodeMessage + func (s *MockCCComm) GetSendStream() chan *pb.ChaincodeMessage + func (s *MockCCComm) Quit() + func (s *MockCCComm) Recv() (*pb.ChaincodeMessage, error) + func (s *MockCCComm) Run(done <-chan struct{}) error + func (s *MockCCComm) Send(msg *pb.ChaincodeMessage) error + func (s *MockCCComm) SetBailOnError(b bool) + func (s *MockCCComm) SetKeepAlive(ka *pb.ChaincodeMessage) + func (s *MockCCComm) SetName(newname string) + func (s *MockCCComm) SetPong(val bool) + func (s *MockCCComm) SetResponses(respSet *MockResponseSet) + type MockPeerCCSupport struct + func NewMockPeerSupport() *MockPeerCCSupport + func (mp *MockPeerCCSupport) AddCC(name string, recv chan *pb.ChaincodeMessage, send chan *pb.ChaincodeMessage) (*MockCCComm, error) + func (mp *MockPeerCCSupport) GetCC(name string) (*MockCCComm, error) + func (mp *MockPeerCCSupport) GetCCMirror(name string) *MockCCComm + func (mp *MockPeerCCSupport) RemoveAll() error + func (mp *MockPeerCCSupport) RemoveCC(name string) error + type MockResponse struct + RecvMsg *pb.ChaincodeMessage + RespMsg interface{} + type MockResponseSet struct + DoneFunc func(int, error) + ErrorFunc func(int, error) + Responses []*MockResponse