fabric: github.com/hyperledger/fabric/core/chaincode/persistence/mock Index | Files

package mock

import "github.com/hyperledger/fabric/core/chaincode/persistence/mock"

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

Package Files

ioreadwriter.go legacy_package_provider.go osfileinfo.go package_parser.go store_package_provider.go

type IOReadWriter Uses

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 Uses

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

func (*IOReadWriter) ReadDir Uses

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

func (*IOReadWriter) ReadDirArgsForCall Uses

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

func (*IOReadWriter) ReadDirCallCount Uses

func (fake *IOReadWriter) ReadDirCallCount() int

func (*IOReadWriter) ReadDirCalls Uses

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

func (*IOReadWriter) ReadDirReturns Uses

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

func (*IOReadWriter) ReadDirReturnsOnCall Uses

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

func (*IOReadWriter) ReadFile Uses

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

func (*IOReadWriter) ReadFileArgsForCall Uses

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

func (*IOReadWriter) ReadFileCallCount Uses

func (fake *IOReadWriter) ReadFileCallCount() int

func (*IOReadWriter) ReadFileCalls Uses

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

func (*IOReadWriter) ReadFileReturns Uses

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

func (*IOReadWriter) ReadFileReturnsOnCall Uses

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

func (*IOReadWriter) Remove Uses

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

func (*IOReadWriter) RemoveArgsForCall Uses

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

func (*IOReadWriter) RemoveCallCount Uses

func (fake *IOReadWriter) RemoveCallCount() int

func (*IOReadWriter) RemoveCalls Uses

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

func (*IOReadWriter) RemoveReturns Uses

func (fake *IOReadWriter) RemoveReturns(result1 error)

func (*IOReadWriter) RemoveReturnsOnCall Uses

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

func (*IOReadWriter) Stat Uses

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

func (*IOReadWriter) StatArgsForCall Uses

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

func (*IOReadWriter) StatCallCount Uses

func (fake *IOReadWriter) StatCallCount() int

func (*IOReadWriter) StatCalls Uses

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

func (*IOReadWriter) StatReturns Uses

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

func (*IOReadWriter) StatReturnsOnCall Uses

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

func (*IOReadWriter) WriteFile Uses

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

func (*IOReadWriter) WriteFileArgsForCall Uses

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

func (*IOReadWriter) WriteFileCallCount Uses

func (fake *IOReadWriter) WriteFileCallCount() int

func (*IOReadWriter) WriteFileCalls Uses

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

func (*IOReadWriter) WriteFileReturns Uses

func (fake *IOReadWriter) WriteFileReturns(result1 error)

func (*IOReadWriter) WriteFileReturnsOnCall Uses

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

type LegacyPackageProvider Uses

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 Uses

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

func (*LegacyPackageProvider) GetChaincodeCodePackageArgsForCall Uses

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

func (*LegacyPackageProvider) GetChaincodeCodePackageCallCount Uses

func (fake *LegacyPackageProvider) GetChaincodeCodePackageCallCount() int

func (*LegacyPackageProvider) GetChaincodeCodePackageCalls Uses

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

func (*LegacyPackageProvider) GetChaincodeCodePackageReturns Uses

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

func (*LegacyPackageProvider) GetChaincodeCodePackageReturnsOnCall Uses

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

func (*LegacyPackageProvider) Invocations Uses

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

func (*LegacyPackageProvider) ListInstalledChaincodes Uses

func (fake *LegacyPackageProvider) ListInstalledChaincodes(arg1 string, arg2 ccprovider.DirEnumerator, arg3 ccprovider.ChaincodeExtractor) ([]chaincode.InstalledChaincode, error)

func (*LegacyPackageProvider) ListInstalledChaincodesArgsForCall Uses

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

func (*LegacyPackageProvider) ListInstalledChaincodesCallCount Uses

func (fake *LegacyPackageProvider) ListInstalledChaincodesCallCount() int

func (*LegacyPackageProvider) ListInstalledChaincodesCalls Uses

func (fake *LegacyPackageProvider) ListInstalledChaincodesCalls(stub func(string, ccprovider.DirEnumerator, ccprovider.ChaincodeExtractor) ([]chaincode.InstalledChaincode, error))

func (*LegacyPackageProvider) ListInstalledChaincodesReturns Uses

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

func (*LegacyPackageProvider) ListInstalledChaincodesReturnsOnCall Uses

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

type OSFileInfo Uses

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 Uses

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

func (*OSFileInfo) IsDir Uses

func (fake *OSFileInfo) IsDir() bool

func (*OSFileInfo) IsDirCallCount Uses

func (fake *OSFileInfo) IsDirCallCount() int

func (*OSFileInfo) IsDirCalls Uses

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

func (*OSFileInfo) IsDirReturns Uses

func (fake *OSFileInfo) IsDirReturns(result1 bool)

func (*OSFileInfo) IsDirReturnsOnCall Uses

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

func (*OSFileInfo) ModTime Uses

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

func (*OSFileInfo) ModTimeCallCount Uses

func (fake *OSFileInfo) ModTimeCallCount() int

func (*OSFileInfo) ModTimeCalls Uses

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

func (*OSFileInfo) ModTimeReturns Uses

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

func (*OSFileInfo) ModTimeReturnsOnCall Uses

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

func (*OSFileInfo) Mode Uses

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

func (*OSFileInfo) ModeCallCount Uses

func (fake *OSFileInfo) ModeCallCount() int

func (*OSFileInfo) ModeCalls Uses

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

func (*OSFileInfo) ModeReturns Uses

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

func (*OSFileInfo) ModeReturnsOnCall Uses

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

func (*OSFileInfo) Name Uses

func (fake *OSFileInfo) Name() string

func (*OSFileInfo) NameCallCount Uses

func (fake *OSFileInfo) NameCallCount() int

func (*OSFileInfo) NameCalls Uses

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

func (*OSFileInfo) NameReturns Uses

func (fake *OSFileInfo) NameReturns(result1 string)

func (*OSFileInfo) NameReturnsOnCall Uses

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

func (*OSFileInfo) Size Uses

func (fake *OSFileInfo) Size() int64

func (*OSFileInfo) SizeCallCount Uses

func (fake *OSFileInfo) SizeCallCount() int

func (*OSFileInfo) SizeCalls Uses

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

func (*OSFileInfo) SizeReturns Uses

func (fake *OSFileInfo) SizeReturns(result1 int64)

func (*OSFileInfo) SizeReturnsOnCall Uses

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

func (*OSFileInfo) Sys Uses

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

func (*OSFileInfo) SysCallCount Uses

func (fake *OSFileInfo) SysCallCount() int

func (*OSFileInfo) SysCalls Uses

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

func (*OSFileInfo) SysReturns Uses

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

func (*OSFileInfo) SysReturnsOnCall Uses

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

type PackageParser Uses

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

func (*PackageParser) Invocations Uses

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

func (*PackageParser) Parse Uses

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

func (*PackageParser) ParseArgsForCall Uses

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

func (*PackageParser) ParseCallCount Uses

func (fake *PackageParser) ParseCallCount() int

func (*PackageParser) ParseCalls Uses

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

func (*PackageParser) ParseReturns Uses

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

func (*PackageParser) ParseReturnsOnCall Uses

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

type StorePackageProvider Uses

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 Uses

func (fake *StorePackageProvider) GetChaincodeInstallPath() string

func (*StorePackageProvider) GetChaincodeInstallPathCallCount Uses

func (fake *StorePackageProvider) GetChaincodeInstallPathCallCount() int

func (*StorePackageProvider) GetChaincodeInstallPathCalls Uses

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

func (*StorePackageProvider) GetChaincodeInstallPathReturns Uses

func (fake *StorePackageProvider) GetChaincodeInstallPathReturns(result1 string)

func (*StorePackageProvider) GetChaincodeInstallPathReturnsOnCall Uses

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

func (*StorePackageProvider) Invocations Uses

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

func (*StorePackageProvider) ListInstalledChaincodes Uses

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

func (*StorePackageProvider) ListInstalledChaincodesCallCount Uses

func (fake *StorePackageProvider) ListInstalledChaincodesCallCount() int

func (*StorePackageProvider) ListInstalledChaincodesCalls Uses

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

func (*StorePackageProvider) ListInstalledChaincodesReturns Uses

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

func (*StorePackageProvider) ListInstalledChaincodesReturnsOnCall Uses

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

func (*StorePackageProvider) Load Uses

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

func (*StorePackageProvider) LoadArgsForCall Uses

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

func (*StorePackageProvider) LoadCallCount Uses

func (fake *StorePackageProvider) LoadCallCount() int

func (*StorePackageProvider) LoadCalls Uses

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

func (*StorePackageProvider) LoadReturns Uses

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

func (*StorePackageProvider) LoadReturnsOnCall Uses

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

func (*StorePackageProvider) RetrieveHash Uses

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

func (*StorePackageProvider) RetrieveHashArgsForCall Uses

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

func (*StorePackageProvider) RetrieveHashCallCount Uses

func (fake *StorePackageProvider) RetrieveHashCallCount() int

func (*StorePackageProvider) RetrieveHashCalls Uses

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

func (*StorePackageProvider) RetrieveHashReturns Uses

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

func (*StorePackageProvider) RetrieveHashReturnsOnCall Uses

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

Package mock imports 6 packages (graph). Updated 2019-01-27. Refresh now. Tools for package owners.