mocks

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirCache

type DirCache struct {
	mock.Mock
}

DirCache is an autogenerated mock type for the DirCache type

func NewDirCache

func NewDirCache(t interface {
	mock.TestingT
	Cleanup(func())
}) *DirCache

NewDirCache creates a new instance of DirCache. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*DirCache) DeleteEntry

func (_m *DirCache) DeleteEntry(directory string)

DeleteEntry provides a mock function with given fields: directory

func (*DirCache) FindMassifFiles

func (_m *DirCache) FindMassifFiles(directory string) error

FindMassifFiles provides a mock function with given fields: directory

func (*DirCache) GetEntry

func (_m *DirCache) GetEntry(directory string) (massifs.DirCacheEntry, bool)

GetEntry provides a mock function with given fields: directory

func (*DirCache) GetOpener

func (_m *DirCache) GetOpener() massifs.Opener

GetOpener provides a mock function with given fields:

func (*DirCache) Open

func (_m *DirCache) Open(fileName string) (io.ReadCloser, error)

Open provides a mock function with given fields: fileName

func (*DirCache) Options

func (_m *DirCache) Options() massifs.DirCacheOptions

Options provides a mock function with given fields:

func (*DirCache) ReadMassif

func (_m *DirCache) ReadMassif(directory string, massifIndex uint64) (*massifs.MassifContext, error)

ReadMassif provides a mock function with given fields: directory, massifIndex

func (*DirCache) ReadMassifDirEntry

func (_m *DirCache) ReadMassifDirEntry(directory string) (massifs.DirCacheEntry, error)

ReadMassifDirEntry provides a mock function with given fields: directory

func (*DirCache) ReadMassifStart

func (_m *DirCache) ReadMassifStart(filepath string) (massifs.MassifStart, string, error)

ReadMassifStart provides a mock function with given fields: filepath

func (*DirCache) ReadSeal

func (_m *DirCache) ReadSeal(directory string, massifIndex uint64) (*massifs.SealedState, error)

ReadSeal provides a mock function with given fields: directory, massifIndex

func (*DirCache) ReadSealDirEntry

func (_m *DirCache) ReadSealDirEntry(directory string) (massifs.DirCacheEntry, error)

ReadSealDirEntry provides a mock function with given fields: directory

func (*DirCache) ReplaceMassif

func (_m *DirCache) ReplaceMassif(logfile string, mc *massifs.MassifContext) error

ReplaceMassif provides a mock function with given fields: logfile, mc

func (*DirCache) ReplaceSeal

func (_m *DirCache) ReplaceSeal(sealFilename string, massifIndex uint32, sealedState *massifs.SealedState) error

ReplaceSeal provides a mock function with given fields: sealFilename, massifIndex, sealedState

func (*DirCache) ResolveMassifDir

func (_m *DirCache) ResolveMassifDir(tenantIdentityOrLocalPath string) (string, error)

ResolveMassifDir provides a mock function with given fields: tenantIdentityOrLocalPath

func (*DirCache) ResolveSealDir

func (_m *DirCache) ResolveSealDir(tenantIdentityOrLocalPath string) (string, error)

ResolveSealDir provides a mock function with given fields: tenantIdentityOrLocalPath

type DirCacheEntry

type DirCacheEntry struct {
	mock.Mock
}

DirCacheEntry is an autogenerated mock type for the DirCacheEntry type

func NewDirCacheEntry

func NewDirCacheEntry(t interface {
	mock.TestingT
	Cleanup(func())
}) *DirCacheEntry

NewDirCacheEntry creates a new instance of DirCacheEntry. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*DirCacheEntry) GetInfo

func (_m *DirCacheEntry) GetInfo() massifs.EntryInfo

GetInfo provides a mock function with given fields:

func (*DirCacheEntry) GetSeal

func (_m *DirCacheEntry) GetSeal(c massifs.DirCache, massifIndex uint64) (*massifs.SealedState, error)

GetSeal provides a mock function with given fields: c, massifIndex

func (*DirCacheEntry) ReadMassif

func (_m *DirCacheEntry) ReadMassif(c massifs.DirCache, massifIndex uint64) (*massifs.MassifContext, error)

ReadMassif provides a mock function with given fields: c, massifIndex

func (*DirCacheEntry) ReadMassifStart

func (_m *DirCacheEntry) ReadMassifStart(c massifs.DirCache, logfile string) (massifs.MassifStart, error)

ReadMassifStart provides a mock function with given fields: c, logfile

func (*DirCacheEntry) ReadSeal

func (_m *DirCacheEntry) ReadSeal(c massifs.DirCache, fileName string) (*massifs.SealedState, error)

ReadSeal provides a mock function with given fields: c, fileName

type DirCacheOption

type DirCacheOption struct {
	mock.Mock
}

DirCacheOption is an autogenerated mock type for the DirCacheOption type

func NewDirCacheOption

func NewDirCacheOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *DirCacheOption

NewDirCacheOption creates a new instance of DirCacheOption. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*DirCacheOption) Execute

func (_m *DirCacheOption) Execute(_a0 *massifs.DirCacheOptions)

Execute provides a mock function with given fields: _a0

type DirLister

type DirLister struct {
	mock.Mock
}

DirLister is an autogenerated mock type for the DirLister type

func NewDirLister

func NewDirLister(t interface {
	mock.TestingT
	Cleanup(func())
}) *DirLister

NewDirLister creates a new instance of DirLister. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*DirLister) ListFiles

func (_m *DirLister) ListFiles(_a0 string) ([]string, error)

ListFiles provides a mock function with given fields: _a0

type DirResolver

type DirResolver struct {
	mock.Mock
}

DirResolver is an autogenerated mock type for the DirResolver type

func NewDirResolver

func NewDirResolver(t interface {
	mock.TestingT
	Cleanup(func())
}) *DirResolver

NewDirResolver creates a new instance of DirResolver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*DirResolver) ResolveMassifDir

func (_m *DirResolver) ResolveMassifDir(tenantIdentityOrLocalPath string) (string, error)

ResolveMassifDir provides a mock function with given fields: tenantIdentityOrLocalPath

func (*DirResolver) ResolveSealDir

func (_m *DirResolver) ResolveSealDir(tenantIdentityOrLocalPath string) (string, error)

ResolveSealDir provides a mock function with given fields: tenantIdentityOrLocalPath

type LogBlobReader

type LogBlobReader struct {
	mock.Mock
}

LogBlobReader is an autogenerated mock type for the LogBlobReader type

func NewLogBlobReader

func NewLogBlobReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *LogBlobReader

NewLogBlobReader creates a new instance of LogBlobReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*LogBlobReader) FilteredList

func (_m *LogBlobReader) FilteredList(ctx context.Context, tagsFilter string, opts ...azblob.Option) (*azblob.FilterResponse, error)

FilteredList provides a mock function with given fields: ctx, tagsFilter, opts

func (*LogBlobReader) List

func (_m *LogBlobReader) List(ctx context.Context, opts ...azblob.Option) (*azblob.ListerResponse, error)

List provides a mock function with given fields: ctx, opts

func (*LogBlobReader) Reader

func (_m *LogBlobReader) Reader(ctx context.Context, identity string, opts ...azblob.Option) (*azblob.ReaderResponse, error)

Reader provides a mock function with given fields: ctx, identity, opts

type MassifStore

type MassifStore struct {
	mock.Mock
}

MassifStore is an autogenerated mock type for the massifStore type

func NewMassifStore

func NewMassifStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *MassifStore

NewMassifStore creates a new instance of MassifStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MassifStore) FilteredList

func (_m *MassifStore) FilteredList(ctx context.Context, tagsFilter string, opts ...azblob.Option) (*azblob.FilterResponse, error)

FilteredList provides a mock function with given fields: ctx, tagsFilter, opts

func (*MassifStore) List

func (_m *MassifStore) List(ctx context.Context, opts ...azblob.Option) (*azblob.ListerResponse, error)

List provides a mock function with given fields: ctx, opts

func (*MassifStore) Put

func (_m *MassifStore) Put(ctx context.Context, identity string, source io.ReadSeekCloser, opts ...azblob.Option) (*azblob.WriteResponse, error)

Put provides a mock function with given fields: ctx, identity, source, opts

func (*MassifStore) Reader

func (_m *MassifStore) Reader(ctx context.Context, identity string, opts ...azblob.Option) (*azblob.ReaderResponse, error)

Reader provides a mock function with given fields: ctx, identity, opts

type Opener

type Opener struct {
	mock.Mock
}

Opener is an autogenerated mock type for the Opener type

func NewOpener

func NewOpener(t interface {
	mock.TestingT
	Cleanup(func())
}) *Opener

NewOpener creates a new instance of Opener. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Opener) Open

func (_m *Opener) Open(_a0 string) (io.ReadCloser, error)

Open provides a mock function with given fields: _a0

type ParseIdentifyingSegment

type ParseIdentifyingSegment struct {
	mock.Mock
}

ParseIdentifyingSegment is an autogenerated mock type for the ParseIdentifyingSegment type

func NewParseIdentifyingSegment

func NewParseIdentifyingSegment(t interface {
	mock.TestingT
	Cleanup(func())
}) *ParseIdentifyingSegment

NewParseIdentifyingSegment creates a new instance of ParseIdentifyingSegment. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ParseIdentifyingSegment) Execute

func (_m *ParseIdentifyingSegment) Execute(blobPath string) (string, error)

Execute provides a mock function with given fields: blobPath

type PublicKeyProvider

type PublicKeyProvider struct {
	mock.Mock
}

PublicKeyProvider is an autogenerated mock type for the publicKeyProvider type

func NewPublicKeyProvider

func NewPublicKeyProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *PublicKeyProvider

NewPublicKeyProvider creates a new instance of PublicKeyProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*PublicKeyProvider) PublicKey

func (_m *PublicKeyProvider) PublicKey() (crypto.PublicKey, cose.Algorithm, error)

PublicKey provides a mock function with given fields:

type ReaderOption

type ReaderOption struct {
	mock.Mock
}

ReaderOption is an autogenerated mock type for the ReaderOption type

func NewReaderOption

func NewReaderOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *ReaderOption

NewReaderOption creates a new instance of ReaderOption. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ReaderOption) Execute

func (_m *ReaderOption) Execute(_a0 *massifs.ReaderOptions)

Execute provides a mock function with given fields: _a0

type ReplicaReader

type ReplicaReader struct {
	mock.Mock
}

ReplicaReader is an autogenerated mock type for the ReplicaReader type

func NewReplicaReader

func NewReplicaReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *ReplicaReader

NewReplicaReader creates a new instance of ReplicaReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ReplicaReader) EnsureReplicaDirs

func (_m *ReplicaReader) EnsureReplicaDirs(tenantIdentity string) error

EnsureReplicaDirs provides a mock function with given fields: tenantIdentity

func (*ReplicaReader) GetHeadVerifiedContext

func (_m *ReplicaReader) GetHeadVerifiedContext(ctx context.Context, tenantIdentity string, opts ...massifs.ReaderOption) (*massifs.VerifiedContext, error)

GetHeadVerifiedContext provides a mock function with given fields: ctx, tenantIdentity, opts

func (*ReplicaReader) GetMassifLocalPath

func (_m *ReplicaReader) GetMassifLocalPath(tenantIdentity string, massifIndex uint32) string

GetMassifLocalPath provides a mock function with given fields: tenantIdentity, massifIndex

func (*ReplicaReader) GetReplicaDir

func (_m *ReplicaReader) GetReplicaDir() string

GetReplicaDir provides a mock function with given fields:

func (*ReplicaReader) GetSealLocalPath

func (_m *ReplicaReader) GetSealLocalPath(tenantIdentity string, massifIndex uint32) string

GetSealLocalPath provides a mock function with given fields: tenantIdentity, massifIndex

func (*ReplicaReader) GetVerifiedContext

func (_m *ReplicaReader) GetVerifiedContext(ctx context.Context, tenantIdentity string, massifIndex uint64, opts ...massifs.ReaderOption) (*massifs.VerifiedContext, error)

GetVerifiedContext provides a mock function with given fields: ctx, tenantIdentity, massifIndex, opts

func (*ReplicaReader) InReplicaMode

func (_m *ReplicaReader) InReplicaMode() bool

InReplicaMode provides a mock function with given fields:

func (*ReplicaReader) ReplaceVerifiedContext

func (_m *ReplicaReader) ReplaceVerifiedContext(vc *massifs.VerifiedContext, writeOpener massifs.WriteAppendOpener) error

ReplaceVerifiedContext provides a mock function with given fields: vc, writeOpener

func (*ReplicaReader) ResolveMassifDir

func (_m *ReplicaReader) ResolveMassifDir(tenantIdentityOrLocalPath string) (string, error)

ResolveMassifDir provides a mock function with given fields: tenantIdentityOrLocalPath

func (*ReplicaReader) ResolveSealDir

func (_m *ReplicaReader) ResolveSealDir(tenantIdentityOrLocalPath string) (string, error)

ResolveSealDir provides a mock function with given fields: tenantIdentityOrLocalPath

type SealGetter

type SealGetter struct {
	mock.Mock
}

SealGetter is an autogenerated mock type for the SealGetter type

func NewSealGetter

func NewSealGetter(t interface {
	mock.TestingT
	Cleanup(func())
}) *SealGetter

NewSealGetter creates a new instance of SealGetter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*SealGetter) GetSignedRoot

func (_m *SealGetter) GetSignedRoot(ctx context.Context, tenantIdentity string, massifIndex uint32, opts ...massifs.ReaderOption) (*cose.CoseSign1Message, massifs.MMRState, error)

GetSignedRoot provides a mock function with given fields: ctx, tenantIdentity, massifIndex, opts

type VerifiedContextReader

type VerifiedContextReader struct {
	mock.Mock
}

VerifiedContextReader is an autogenerated mock type for the VerifiedContextReader type

func NewVerifiedContextReader

func NewVerifiedContextReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *VerifiedContextReader

NewVerifiedContextReader creates a new instance of VerifiedContextReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*VerifiedContextReader) GetVerifiedContext

func (_m *VerifiedContextReader) GetVerifiedContext(ctx context.Context, tenantIdentity string, massifIndex uint64, opts ...massifs.ReaderOption) (*massifs.VerifiedContext, error)

GetVerifiedContext provides a mock function with given fields: ctx, tenantIdentity, massifIndex, opts

type VisitFilterResponse

type VisitFilterResponse struct {
	mock.Mock
}

VisitFilterResponse is an autogenerated mock type for the VisitFilterResponse type

func NewVisitFilterResponse

func NewVisitFilterResponse(t interface {
	mock.TestingT
	Cleanup(func())
}) *VisitFilterResponse

NewVisitFilterResponse creates a new instance of VisitFilterResponse. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*VisitFilterResponse) Execute

Execute provides a mock function with given fields: ctx, store, it

type WriteAppendOpener

type WriteAppendOpener struct {
	mock.Mock
}

WriteAppendOpener is an autogenerated mock type for the WriteAppendOpener type

func NewWriteAppendOpener

func NewWriteAppendOpener(t interface {
	mock.TestingT
	Cleanup(func())
}) *WriteAppendOpener

NewWriteAppendOpener creates a new instance of WriteAppendOpener. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*WriteAppendOpener) Open

func (_m *WriteAppendOpener) Open(_a0 string) (io.WriteCloser, error)

Open provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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