mock

package
v0.0.0-...-35b2663 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerBuilder

type DockerBuilder struct {
	BuildStub func(string, *persistence.ChaincodePackageMetadata, io.Reader) (container.Instance, error)
	// contains filtered or unexported fields
}

func (*DockerBuilder) Build

func (*DockerBuilder) BuildArgsForCall

func (fake *DockerBuilder) BuildArgsForCall(i int) (string, *persistence.ChaincodePackageMetadata, io.Reader)

func (*DockerBuilder) BuildCallCount

func (fake *DockerBuilder) BuildCallCount() int

func (*DockerBuilder) BuildCalls

func (*DockerBuilder) BuildReturns

func (fake *DockerBuilder) BuildReturns(result1 container.Instance, result2 error)

func (*DockerBuilder) BuildReturnsOnCall

func (fake *DockerBuilder) BuildReturnsOnCall(i int, result1 container.Instance, result2 error)

func (*DockerBuilder) Invocations

func (fake *DockerBuilder) Invocations() map[string][][]interface{}

type ExternalBuilder

type ExternalBuilder struct {
	BuildStub func(string, []byte, io.Reader) (container.Instance, error)
	// contains filtered or unexported fields
}

func (*ExternalBuilder) Build

func (fake *ExternalBuilder) Build(arg1 string, arg2 []byte, arg3 io.Reader) (container.Instance, error)

func (*ExternalBuilder) BuildArgsForCall

func (fake *ExternalBuilder) BuildArgsForCall(i int) (string, []byte, io.Reader)

func (*ExternalBuilder) BuildCallCount

func (fake *ExternalBuilder) BuildCallCount() int

func (*ExternalBuilder) BuildCalls

func (fake *ExternalBuilder) BuildCalls(stub func(string, []byte, io.Reader) (container.Instance, error))

func (*ExternalBuilder) BuildReturns

func (fake *ExternalBuilder) BuildReturns(result1 container.Instance, result2 error)

func (*ExternalBuilder) BuildReturnsOnCall

func (fake *ExternalBuilder) BuildReturnsOnCall(i int, result1 container.Instance, result2 error)

func (*ExternalBuilder) Invocations

func (fake *ExternalBuilder) Invocations() map[string][][]interface{}

type Instance

type Instance struct {
	ChaincodeServerInfoStub func() (*ccintf.ChaincodeServerInfo, error)

	StartStub func(*ccintf.PeerConnection) error

	StopStub func() error

	WaitStub func() (int, error)
	// contains filtered or unexported fields
}

func (*Instance) ChaincodeServerInfo

func (fake *Instance) ChaincodeServerInfo() (*ccintf.ChaincodeServerInfo, error)

func (*Instance) ChaincodeServerInfoCallCount

func (fake *Instance) ChaincodeServerInfoCallCount() int

func (*Instance) ChaincodeServerInfoCalls

func (fake *Instance) ChaincodeServerInfoCalls(stub func() (*ccintf.ChaincodeServerInfo, error))

func (*Instance) ChaincodeServerInfoReturns

func (fake *Instance) ChaincodeServerInfoReturns(result1 *ccintf.ChaincodeServerInfo, result2 error)

func (*Instance) ChaincodeServerInfoReturnsOnCall

func (fake *Instance) ChaincodeServerInfoReturnsOnCall(i int, result1 *ccintf.ChaincodeServerInfo, result2 error)

func (*Instance) Invocations

func (fake *Instance) Invocations() map[string][][]interface{}

func (*Instance) Start

func (fake *Instance) Start(arg1 *ccintf.PeerConnection) error

func (*Instance) StartArgsForCall

func (fake *Instance) StartArgsForCall(i int) *ccintf.PeerConnection

func (*Instance) StartCallCount

func (fake *Instance) StartCallCount() int

func (*Instance) StartCalls

func (fake *Instance) StartCalls(stub func(*ccintf.PeerConnection) error)

func (*Instance) StartReturns

func (fake *Instance) StartReturns(result1 error)

func (*Instance) StartReturnsOnCall

func (fake *Instance) StartReturnsOnCall(i int, result1 error)

func (*Instance) Stop

func (fake *Instance) Stop() error

func (*Instance) StopCallCount

func (fake *Instance) StopCallCount() int

func (*Instance) StopCalls

func (fake *Instance) StopCalls(stub func() error)

func (*Instance) StopReturns

func (fake *Instance) StopReturns(result1 error)

func (*Instance) StopReturnsOnCall

func (fake *Instance) StopReturnsOnCall(i int, result1 error)

func (*Instance) Wait

func (fake *Instance) Wait() (int, error)

func (*Instance) WaitCallCount

func (fake *Instance) WaitCallCount() int

func (*Instance) WaitCalls

func (fake *Instance) WaitCalls(stub func() (int, error))

func (*Instance) WaitReturns

func (fake *Instance) WaitReturns(result1 int, result2 error)

func (*Instance) WaitReturnsOnCall

func (fake *Instance) WaitReturnsOnCall(i int, result1 int, result2 error)

type PackageProvider

type PackageProvider struct {
	GetChaincodePackageStub func(string) (*persistence.ChaincodePackageMetadata, []byte, io.ReadCloser, error)
	// contains filtered or unexported fields
}

func (*PackageProvider) GetChaincodePackage

func (fake *PackageProvider) GetChaincodePackage(arg1 string) (*persistence.ChaincodePackageMetadata, []byte, io.ReadCloser, error)

func (*PackageProvider) GetChaincodePackageArgsForCall

func (fake *PackageProvider) GetChaincodePackageArgsForCall(i int) string

func (*PackageProvider) GetChaincodePackageCallCount

func (fake *PackageProvider) GetChaincodePackageCallCount() int

func (*PackageProvider) GetChaincodePackageCalls

func (fake *PackageProvider) GetChaincodePackageCalls(stub func(string) (*persistence.ChaincodePackageMetadata, []byte, io.ReadCloser, error))

func (*PackageProvider) GetChaincodePackageReturns

func (fake *PackageProvider) GetChaincodePackageReturns(result1 *persistence.ChaincodePackageMetadata, result2 []byte, result3 io.ReadCloser, result4 error)

func (*PackageProvider) GetChaincodePackageReturnsOnCall

func (fake *PackageProvider) GetChaincodePackageReturnsOnCall(i int, result1 *persistence.ChaincodePackageMetadata, result2 []byte, result3 io.ReadCloser, result4 error)

func (*PackageProvider) Invocations

func (fake *PackageProvider) Invocations() map[string][][]interface{}

Jump to

Keyboard shortcuts

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