mock

package
v1.4.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2018 License: Apache-2.0 Imports: 6 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.

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 IOReadWriter

type IOReadWriter struct {
	ReadDirStub func(string) ([]os.FileInfo, error)

	ReadFileStub func(string) ([]byte, error)

	RemoveStub func(string) error

	StatStub func(string) (os.FileInfo, error)

	WriteFileStub func(string, []byte, os.FileMode) error
	// contains filtered or unexported fields
}

func (*IOReadWriter) Invocations

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

func (*IOReadWriter) ReadDir

func (fake *IOReadWriter) ReadDir(arg1 string) ([]os.FileInfo, error)

func (*IOReadWriter) ReadDirArgsForCall

func (fake *IOReadWriter) ReadDirArgsForCall(i int) string

func (*IOReadWriter) ReadDirCallCount

func (fake *IOReadWriter) ReadDirCallCount() int

func (*IOReadWriter) ReadDirCalls

func (fake *IOReadWriter) ReadDirCalls(stub func(string) ([]os.FileInfo, error))

func (*IOReadWriter) ReadDirReturns

func (fake *IOReadWriter) ReadDirReturns(result1 []os.FileInfo, result2 error)

func (*IOReadWriter) ReadDirReturnsOnCall

func (fake *IOReadWriter) ReadDirReturnsOnCall(i int, result1 []os.FileInfo, result2 error)

func (*IOReadWriter) ReadFile

func (fake *IOReadWriter) ReadFile(arg1 string) ([]byte, error)

func (*IOReadWriter) ReadFileArgsForCall

func (fake *IOReadWriter) ReadFileArgsForCall(i int) string

func (*IOReadWriter) ReadFileCallCount

func (fake *IOReadWriter) ReadFileCallCount() int

func (*IOReadWriter) ReadFileCalls

func (fake *IOReadWriter) ReadFileCalls(stub func(string) ([]byte, error))

func (*IOReadWriter) ReadFileReturns

func (fake *IOReadWriter) ReadFileReturns(result1 []byte, result2 error)

func (*IOReadWriter) ReadFileReturnsOnCall

func (fake *IOReadWriter) ReadFileReturnsOnCall(i int, result1 []byte, result2 error)

func (*IOReadWriter) Remove

func (fake *IOReadWriter) Remove(arg1 string) error

func (*IOReadWriter) RemoveArgsForCall

func (fake *IOReadWriter) RemoveArgsForCall(i int) string

func (*IOReadWriter) RemoveCallCount

func (fake *IOReadWriter) RemoveCallCount() int

func (*IOReadWriter) RemoveCalls

func (fake *IOReadWriter) RemoveCalls(stub func(string) error)

func (*IOReadWriter) RemoveReturns

func (fake *IOReadWriter) RemoveReturns(result1 error)

func (*IOReadWriter) RemoveReturnsOnCall

func (fake *IOReadWriter) RemoveReturnsOnCall(i int, result1 error)

func (*IOReadWriter) Stat added in v1.3.0

func (fake *IOReadWriter) Stat(arg1 string) (os.FileInfo, error)

func (*IOReadWriter) StatArgsForCall added in v1.3.0

func (fake *IOReadWriter) StatArgsForCall(i int) string

func (*IOReadWriter) StatCallCount added in v1.3.0

func (fake *IOReadWriter) StatCallCount() int

func (*IOReadWriter) StatCalls added in v1.4.0

func (fake *IOReadWriter) StatCalls(stub func(string) (os.FileInfo, error))

func (*IOReadWriter) StatReturns added in v1.3.0

func (fake *IOReadWriter) StatReturns(result1 os.FileInfo, result2 error)

func (*IOReadWriter) StatReturnsOnCall added in v1.3.0

func (fake *IOReadWriter) StatReturnsOnCall(i int, result1 os.FileInfo, result2 error)

func (*IOReadWriter) WriteFile

func (fake *IOReadWriter) WriteFile(arg1 string, arg2 []byte, arg3 os.FileMode) error

func (*IOReadWriter) WriteFileArgsForCall

func (fake *IOReadWriter) WriteFileArgsForCall(i int) (string, []byte, os.FileMode)

func (*IOReadWriter) WriteFileCallCount

func (fake *IOReadWriter) WriteFileCallCount() int

func (*IOReadWriter) WriteFileCalls

func (fake *IOReadWriter) WriteFileCalls(stub func(string, []byte, os.FileMode) error)

func (*IOReadWriter) WriteFileReturns

func (fake *IOReadWriter) WriteFileReturns(result1 error)

func (*IOReadWriter) WriteFileReturnsOnCall

func (fake *IOReadWriter) WriteFileReturnsOnCall(i int, result1 error)

type LegacyPackageProvider added in v1.3.0

type LegacyPackageProvider struct {
	GetChaincodeCodePackageStub func(string, string) ([]byte, error)

	ListInstalledChaincodesStub func(string, ccprovider.DirEnumerator, ccprovider.ChaincodeExtractor) ([]chaincode.InstalledChaincode, error)
	// contains filtered or unexported fields
}

func (*LegacyPackageProvider) GetChaincodeCodePackage added in v1.3.0

func (fake *LegacyPackageProvider) GetChaincodeCodePackage(arg1 string, arg2 string) ([]byte, error)

func (*LegacyPackageProvider) GetChaincodeCodePackageArgsForCall added in v1.3.0

func (fake *LegacyPackageProvider) GetChaincodeCodePackageArgsForCall(i int) (string, string)

func (*LegacyPackageProvider) GetChaincodeCodePackageCallCount added in v1.3.0

func (fake *LegacyPackageProvider) GetChaincodeCodePackageCallCount() int

func (*LegacyPackageProvider) GetChaincodeCodePackageCalls added in v1.4.0

func (fake *LegacyPackageProvider) GetChaincodeCodePackageCalls(stub func(string, string) ([]byte, error))

func (*LegacyPackageProvider) GetChaincodeCodePackageReturns added in v1.3.0

func (fake *LegacyPackageProvider) GetChaincodeCodePackageReturns(result1 []byte, result2 error)

func (*LegacyPackageProvider) GetChaincodeCodePackageReturnsOnCall added in v1.3.0

func (fake *LegacyPackageProvider) GetChaincodeCodePackageReturnsOnCall(i int, result1 []byte, result2 error)

func (*LegacyPackageProvider) Invocations added in v1.3.0

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

func (*LegacyPackageProvider) ListInstalledChaincodes added in v1.3.0

func (*LegacyPackageProvider) ListInstalledChaincodesArgsForCall added in v1.3.0

func (fake *LegacyPackageProvider) ListInstalledChaincodesArgsForCall(i int) (string, ccprovider.DirEnumerator, ccprovider.ChaincodeExtractor)

func (*LegacyPackageProvider) ListInstalledChaincodesCallCount added in v1.3.0

func (fake *LegacyPackageProvider) ListInstalledChaincodesCallCount() int

func (*LegacyPackageProvider) ListInstalledChaincodesCalls added in v1.4.0

func (*LegacyPackageProvider) ListInstalledChaincodesReturns added in v1.3.0

func (fake *LegacyPackageProvider) ListInstalledChaincodesReturns(result1 []chaincode.InstalledChaincode, result2 error)

func (*LegacyPackageProvider) ListInstalledChaincodesReturnsOnCall added in v1.3.0

func (fake *LegacyPackageProvider) ListInstalledChaincodesReturnsOnCall(i int, result1 []chaincode.InstalledChaincode, result2 error)

type OSFileInfo

type OSFileInfo struct {
	IsDirStub func() bool

	ModTimeStub func() time.Time

	ModeStub func() os.FileMode

	NameStub func() string

	SizeStub func() int64

	SysStub func() interface{}
	// contains filtered or unexported fields
}

func (*OSFileInfo) Invocations

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

func (*OSFileInfo) IsDir

func (fake *OSFileInfo) IsDir() bool

func (*OSFileInfo) IsDirCallCount

func (fake *OSFileInfo) IsDirCallCount() int

func (*OSFileInfo) IsDirCalls

func (fake *OSFileInfo) IsDirCalls(stub func() bool)

func (*OSFileInfo) IsDirReturns

func (fake *OSFileInfo) IsDirReturns(result1 bool)

func (*OSFileInfo) IsDirReturnsOnCall

func (fake *OSFileInfo) IsDirReturnsOnCall(i int, result1 bool)

func (*OSFileInfo) ModTime

func (fake *OSFileInfo) ModTime() time.Time

func (*OSFileInfo) ModTimeCallCount

func (fake *OSFileInfo) ModTimeCallCount() int

func (*OSFileInfo) ModTimeCalls

func (fake *OSFileInfo) ModTimeCalls(stub func() time.Time)

func (*OSFileInfo) ModTimeReturns

func (fake *OSFileInfo) ModTimeReturns(result1 time.Time)

func (*OSFileInfo) ModTimeReturnsOnCall

func (fake *OSFileInfo) ModTimeReturnsOnCall(i int, result1 time.Time)

func (*OSFileInfo) Mode

func (fake *OSFileInfo) Mode() os.FileMode

func (*OSFileInfo) ModeCallCount

func (fake *OSFileInfo) ModeCallCount() int

func (*OSFileInfo) ModeCalls

func (fake *OSFileInfo) ModeCalls(stub func() os.FileMode)

func (*OSFileInfo) ModeReturns

func (fake *OSFileInfo) ModeReturns(result1 os.FileMode)

func (*OSFileInfo) ModeReturnsOnCall

func (fake *OSFileInfo) ModeReturnsOnCall(i int, result1 os.FileMode)

func (*OSFileInfo) Name

func (fake *OSFileInfo) Name() string

func (*OSFileInfo) NameCallCount

func (fake *OSFileInfo) NameCallCount() int

func (*OSFileInfo) NameCalls

func (fake *OSFileInfo) NameCalls(stub func() string)

func (*OSFileInfo) NameReturns

func (fake *OSFileInfo) NameReturns(result1 string)

func (*OSFileInfo) NameReturnsOnCall

func (fake *OSFileInfo) NameReturnsOnCall(i int, result1 string)

func (*OSFileInfo) Size

func (fake *OSFileInfo) Size() int64

func (*OSFileInfo) SizeCallCount

func (fake *OSFileInfo) SizeCallCount() int

func (*OSFileInfo) SizeCalls

func (fake *OSFileInfo) SizeCalls(stub func() int64)

func (*OSFileInfo) SizeReturns

func (fake *OSFileInfo) SizeReturns(result1 int64)

func (*OSFileInfo) SizeReturnsOnCall

func (fake *OSFileInfo) SizeReturnsOnCall(i int, result1 int64)

func (*OSFileInfo) Sys

func (fake *OSFileInfo) Sys() interface{}

func (*OSFileInfo) SysCallCount

func (fake *OSFileInfo) SysCallCount() int

func (*OSFileInfo) SysCalls

func (fake *OSFileInfo) SysCalls(stub func() interface{})

func (*OSFileInfo) SysReturns

func (fake *OSFileInfo) SysReturns(result1 interface{})

func (*OSFileInfo) SysReturnsOnCall

func (fake *OSFileInfo) SysReturnsOnCall(i int, result1 interface{})

type PackageParser added in v1.3.0

type PackageParser struct {
	ParseStub func([]byte) (*persistence.ChaincodePackage, error)
	// contains filtered or unexported fields
}

func (*PackageParser) Invocations added in v1.3.0

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

func (*PackageParser) Parse added in v1.3.0

func (fake *PackageParser) Parse(arg1 []byte) (*persistence.ChaincodePackage, error)

func (*PackageParser) ParseArgsForCall added in v1.3.0

func (fake *PackageParser) ParseArgsForCall(i int) []byte

func (*PackageParser) ParseCallCount added in v1.3.0

func (fake *PackageParser) ParseCallCount() int

func (*PackageParser) ParseCalls added in v1.4.0

func (fake *PackageParser) ParseCalls(stub func([]byte) (*persistence.ChaincodePackage, error))

func (*PackageParser) ParseReturns added in v1.3.0

func (fake *PackageParser) ParseReturns(result1 *persistence.ChaincodePackage, result2 error)

func (*PackageParser) ParseReturnsOnCall added in v1.3.0

func (fake *PackageParser) ParseReturnsOnCall(i int, result1 *persistence.ChaincodePackage, result2 error)

type StorePackageProvider added in v1.3.0

type StorePackageProvider struct {
	GetChaincodeInstallPathStub func() string

	ListInstalledChaincodesStub func() ([]chaincode.InstalledChaincode, error)

	LoadStub func([]byte) ([]byte, string, string, error)

	RetrieveHashStub func(string, string) ([]byte, error)
	// contains filtered or unexported fields
}

func (*StorePackageProvider) GetChaincodeInstallPath added in v1.3.0

func (fake *StorePackageProvider) GetChaincodeInstallPath() string

func (*StorePackageProvider) GetChaincodeInstallPathCallCount added in v1.3.0

func (fake *StorePackageProvider) GetChaincodeInstallPathCallCount() int

func (*StorePackageProvider) GetChaincodeInstallPathCalls added in v1.4.0

func (fake *StorePackageProvider) GetChaincodeInstallPathCalls(stub func() string)

func (*StorePackageProvider) GetChaincodeInstallPathReturns added in v1.3.0

func (fake *StorePackageProvider) GetChaincodeInstallPathReturns(result1 string)

func (*StorePackageProvider) GetChaincodeInstallPathReturnsOnCall added in v1.3.0

func (fake *StorePackageProvider) GetChaincodeInstallPathReturnsOnCall(i int, result1 string)

func (*StorePackageProvider) Invocations added in v1.3.0

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

func (*StorePackageProvider) ListInstalledChaincodes added in v1.3.0

func (fake *StorePackageProvider) ListInstalledChaincodes() ([]chaincode.InstalledChaincode, error)

func (*StorePackageProvider) ListInstalledChaincodesCallCount added in v1.3.0

func (fake *StorePackageProvider) ListInstalledChaincodesCallCount() int

func (*StorePackageProvider) ListInstalledChaincodesCalls added in v1.4.0

func (fake *StorePackageProvider) ListInstalledChaincodesCalls(stub func() ([]chaincode.InstalledChaincode, error))

func (*StorePackageProvider) ListInstalledChaincodesReturns added in v1.3.0

func (fake *StorePackageProvider) ListInstalledChaincodesReturns(result1 []chaincode.InstalledChaincode, result2 error)

func (*StorePackageProvider) ListInstalledChaincodesReturnsOnCall added in v1.3.0

func (fake *StorePackageProvider) ListInstalledChaincodesReturnsOnCall(i int, result1 []chaincode.InstalledChaincode, result2 error)

func (*StorePackageProvider) Load added in v1.3.0

func (fake *StorePackageProvider) Load(arg1 []byte) ([]byte, string, string, error)

func (*StorePackageProvider) LoadArgsForCall added in v1.3.0

func (fake *StorePackageProvider) LoadArgsForCall(i int) []byte

func (*StorePackageProvider) LoadCallCount added in v1.3.0

func (fake *StorePackageProvider) LoadCallCount() int

func (*StorePackageProvider) LoadCalls added in v1.4.0

func (fake *StorePackageProvider) LoadCalls(stub func([]byte) ([]byte, string, string, error))

func (*StorePackageProvider) LoadReturns added in v1.3.0

func (fake *StorePackageProvider) LoadReturns(result1 []byte, result2 string, result3 string, result4 error)

func (*StorePackageProvider) LoadReturnsOnCall added in v1.3.0

func (fake *StorePackageProvider) LoadReturnsOnCall(i int, result1 []byte, result2 string, result3 string, result4 error)

func (*StorePackageProvider) RetrieveHash added in v1.3.0

func (fake *StorePackageProvider) RetrieveHash(arg1 string, arg2 string) ([]byte, error)

func (*StorePackageProvider) RetrieveHashArgsForCall added in v1.3.0

func (fake *StorePackageProvider) RetrieveHashArgsForCall(i int) (string, string)

func (*StorePackageProvider) RetrieveHashCallCount added in v1.3.0

func (fake *StorePackageProvider) RetrieveHashCallCount() int

func (*StorePackageProvider) RetrieveHashCalls added in v1.4.0

func (fake *StorePackageProvider) RetrieveHashCalls(stub func(string, string) ([]byte, error))

func (*StorePackageProvider) RetrieveHashReturns added in v1.3.0

func (fake *StorePackageProvider) RetrieveHashReturns(result1 []byte, result2 error)

func (*StorePackageProvider) RetrieveHashReturnsOnCall added in v1.3.0

func (fake *StorePackageProvider) RetrieveHashReturnsOnCall(i int, result1 []byte, result2 error)

Jump to

Keyboard shortcuts

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