mock

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 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

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

func (*IOReadWriter) StatArgsForCall

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

func (*IOReadWriter) StatCallCount

func (fake *IOReadWriter) StatCallCount() int

func (*IOReadWriter) StatCalls

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

func (*IOReadWriter) StatReturns

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

func (*IOReadWriter) StatReturnsOnCall

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

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

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

func (*LegacyPackageProvider) GetChaincodeCodePackageArgsForCall

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

func (*LegacyPackageProvider) GetChaincodeCodePackageCallCount

func (fake *LegacyPackageProvider) GetChaincodeCodePackageCallCount() int

func (*LegacyPackageProvider) GetChaincodeCodePackageCalls

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

func (*LegacyPackageProvider) GetChaincodeCodePackageReturns

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

func (*LegacyPackageProvider) GetChaincodeCodePackageReturnsOnCall

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

func (*LegacyPackageProvider) Invocations

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

func (*LegacyPackageProvider) ListInstalledChaincodes

func (*LegacyPackageProvider) ListInstalledChaincodesArgsForCall

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

func (*LegacyPackageProvider) ListInstalledChaincodesCallCount

func (fake *LegacyPackageProvider) ListInstalledChaincodesCallCount() int

func (*LegacyPackageProvider) ListInstalledChaincodesCalls

func (*LegacyPackageProvider) ListInstalledChaincodesReturns

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

func (*LegacyPackageProvider) ListInstalledChaincodesReturnsOnCall

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

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

func (*PackageParser) Invocations

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

func (*PackageParser) Parse

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

func (*PackageParser) ParseArgsForCall

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

func (*PackageParser) ParseCallCount

func (fake *PackageParser) ParseCallCount() int

func (*PackageParser) ParseCalls

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

func (*PackageParser) ParseReturns

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

func (*PackageParser) ParseReturnsOnCall

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

type StorePackageProvider

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

func (fake *StorePackageProvider) GetChaincodeInstallPath() string

func (*StorePackageProvider) GetChaincodeInstallPathCallCount

func (fake *StorePackageProvider) GetChaincodeInstallPathCallCount() int

func (*StorePackageProvider) GetChaincodeInstallPathCalls

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

func (*StorePackageProvider) GetChaincodeInstallPathReturns

func (fake *StorePackageProvider) GetChaincodeInstallPathReturns(result1 string)

func (*StorePackageProvider) GetChaincodeInstallPathReturnsOnCall

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

func (*StorePackageProvider) Invocations

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

func (*StorePackageProvider) ListInstalledChaincodes

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

func (*StorePackageProvider) ListInstalledChaincodesCallCount

func (fake *StorePackageProvider) ListInstalledChaincodesCallCount() int

func (*StorePackageProvider) ListInstalledChaincodesCalls

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

func (*StorePackageProvider) ListInstalledChaincodesReturns

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

func (*StorePackageProvider) ListInstalledChaincodesReturnsOnCall

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

func (*StorePackageProvider) Load

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

func (*StorePackageProvider) LoadArgsForCall

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

func (*StorePackageProvider) LoadCallCount

func (fake *StorePackageProvider) LoadCallCount() int

func (*StorePackageProvider) LoadCalls

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

func (*StorePackageProvider) LoadReturns

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

func (*StorePackageProvider) LoadReturnsOnCall

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

func (*StorePackageProvider) RetrieveHash

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

func (*StorePackageProvider) RetrieveHashArgsForCall

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

func (*StorePackageProvider) RetrieveHashCallCount

func (fake *StorePackageProvider) RetrieveHashCallCount() int

func (*StorePackageProvider) RetrieveHashCalls

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

func (*StorePackageProvider) RetrieveHashReturns

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

func (*StorePackageProvider) RetrieveHashReturnsOnCall

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