mock

package
v0.0.0-...-1f4fc7e Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 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(name 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) 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) 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(name string) error

func (*IOReadWriter) RemoveArgsForCall

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

func (*IOReadWriter) RemoveCallCount

func (fake *IOReadWriter) RemoveCallCount() int

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) 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) 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(name, version string) (codePackage []byte, err error)

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

func (*LegacyPackageProvider) GetChaincodeCodePackage

func (fake *LegacyPackageProvider) GetChaincodeCodePackage(name string, version string) (codePackage []byte, err error)

func (*LegacyPackageProvider) GetChaincodeCodePackageArgsForCall

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

func (*LegacyPackageProvider) GetChaincodeCodePackageCallCount

func (fake *LegacyPackageProvider) GetChaincodeCodePackageCallCount() int

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) 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 {
	NameStub func() string

	SizeStub func() int64

	ModeStub func() os.FileMode

	ModTimeStub func() time.Time

	IsDirStub func() bool

	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) 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) 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) 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) 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) 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) 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(data []byte) (*persistence_test.ChaincodePackage, error)
	// contains filtered or unexported fields
}

func (*PackageParser) Invocations

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

func (*PackageParser) Parse

func (fake *PackageParser) Parse(data []byte) (*persistence_test.ChaincodePackage, error)

func (*PackageParser) ParseArgsForCall

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

func (*PackageParser) ParseCallCount

func (fake *PackageParser) ParseCallCount() int

func (*PackageParser) ParseReturns

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

func (*PackageParser) ParseReturnsOnCall

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

type StorePackageProvider

type StorePackageProvider struct {
	GetChaincodeInstallPathStub func() string

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

	LoadStub func(hash []byte) (codePackage []byte, name, version string, err error)

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

func (*StorePackageProvider) GetChaincodeInstallPath

func (fake *StorePackageProvider) GetChaincodeInstallPath() string

func (*StorePackageProvider) GetChaincodeInstallPathCallCount

func (fake *StorePackageProvider) GetChaincodeInstallPathCallCount() int

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) 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(hash []byte) (codePackage []byte, name, version string, err error)

func (*StorePackageProvider) LoadArgsForCall

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

func (*StorePackageProvider) LoadCallCount

func (fake *StorePackageProvider) LoadCallCount() int

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(name string, version string) (hash []byte, err error)

func (*StorePackageProvider) RetrieveHashArgsForCall

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

func (*StorePackageProvider) RetrieveHashCallCount

func (fake *StorePackageProvider) RetrieveHashCallCount() int

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