mock

package
v0.0.0-...-95b87ed Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	BuildStub func() (io.Reader, error)
	// contains filtered or unexported fields
}

func (*Builder) Build

func (fake *Builder) Build() (io.Reader, error)

func (*Builder) BuildCallCount

func (fake *Builder) BuildCallCount() int

func (*Builder) BuildCalls

func (fake *Builder) BuildCalls(stub func() (io.Reader, error))

func (*Builder) BuildReturns

func (fake *Builder) BuildReturns(result1 io.Reader, result2 error)

func (*Builder) BuildReturnsOnCall

func (fake *Builder) BuildReturnsOnCall(i int, result1 io.Reader, result2 error)

func (*Builder) Invocations

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

type ExitedFunc

type ExitedFunc struct {
	Stub func(int, error)
	// contains filtered or unexported fields
}

func (*ExitedFunc) ArgsForCall

func (fake *ExitedFunc) ArgsForCall(i int) (int, error)

func (*ExitedFunc) CallCount

func (fake *ExitedFunc) CallCount() int

func (*ExitedFunc) Calls

func (fake *ExitedFunc) Calls(stub func(int, error))

func (*ExitedFunc) Invocations

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

func (*ExitedFunc) Spy

func (fake *ExitedFunc) Spy(arg1 int, arg2 error)

type Instance

type Instance struct {
	StartStub func(*ccintf.PeerConnection) error

	StopStub func() error

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

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, io.ReadCloser, error)
	// contains filtered or unexported fields
}

func (*PackageProvider) GetChaincodePackage

func (fake *PackageProvider) GetChaincodePackage(arg1 string) (*persistence.ChaincodePackageMetadata, 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, io.ReadCloser, error))

func (*PackageProvider) GetChaincodePackageReturns

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

func (*PackageProvider) GetChaincodePackageReturnsOnCall

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

func (*PackageProvider) Invocations

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

type VM

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

func (*VM) Build

func (fake *VM) Build(arg1 string, arg2 *persistence.ChaincodePackageMetadata, arg3 io.Reader) (container.Instance, error)

func (*VM) BuildArgsForCall

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

func (*VM) BuildCallCount

func (fake *VM) BuildCallCount() int

func (*VM) BuildCalls

func (fake *VM) BuildCalls(stub func(string, *persistence.ChaincodePackageMetadata, io.Reader) (container.Instance, error))

func (*VM) BuildReturns

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

func (*VM) BuildReturnsOnCall

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

func (*VM) Invocations

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

type VMCReq

type VMCReq struct {
	DoStub func(container.VM) error

	GetCCIDStub func() ccintf.CCID
	// contains filtered or unexported fields
}

func (*VMCReq) Do

func (fake *VMCReq) Do(arg1 container.VM) error

func (*VMCReq) DoArgsForCall

func (fake *VMCReq) DoArgsForCall(i int) container.VM

func (*VMCReq) DoCallCount

func (fake *VMCReq) DoCallCount() int

func (*VMCReq) DoCalls

func (fake *VMCReq) DoCalls(stub func(container.VM) error)

func (*VMCReq) DoReturns

func (fake *VMCReq) DoReturns(result1 error)

func (*VMCReq) DoReturnsOnCall

func (fake *VMCReq) DoReturnsOnCall(i int, result1 error)

func (*VMCReq) GetCCID

func (fake *VMCReq) GetCCID() ccintf.CCID

func (*VMCReq) GetCCIDCallCount

func (fake *VMCReq) GetCCIDCallCount() int

func (*VMCReq) GetCCIDCalls

func (fake *VMCReq) GetCCIDCalls(stub func() ccintf.CCID)

func (*VMCReq) GetCCIDReturns

func (fake *VMCReq) GetCCIDReturns(result1 ccintf.CCID)

func (*VMCReq) GetCCIDReturnsOnCall

func (fake *VMCReq) GetCCIDReturnsOnCall(i int, result1 ccintf.CCID)

func (*VMCReq) Invocations

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

type VMProvider

type VMProvider struct {
	NewVMStub func() container.VM
	// contains filtered or unexported fields
}

func (*VMProvider) Invocations

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

func (*VMProvider) NewVM

func (fake *VMProvider) NewVM() container.VM

func (*VMProvider) NewVMCallCount

func (fake *VMProvider) NewVMCallCount() int

func (*VMProvider) NewVMCalls

func (fake *VMProvider) NewVMCalls(stub func() container.VM)

func (*VMProvider) NewVMReturns

func (fake *VMProvider) NewVMReturns(result1 container.VM)

func (*VMProvider) NewVMReturnsOnCall

func (fake *VMProvider) NewVMReturnsOnCall(i int, result1 container.VM)

Jump to

Keyboard shortcuts

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