adapter

package
v0.0.0-...-05bc493 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 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 AsyncCallFunc

type AsyncCallFunc func(ctx context.Context, svc memorycache.Service) smachine.AsyncResultFunc

type CallFunc

type CallFunc func(ctx context.Context, svc memorycache.Service)

type DefaultMemoryCacheAdapter

type DefaultMemoryCacheAdapter struct {
	// contains filtered or unexported fields
}

func (*DefaultMemoryCacheAdapter) PrepareAsync

func (*DefaultMemoryCacheAdapter) PrepareNotify

func (*DefaultMemoryCacheAdapter) PrepareSync

type MemoryCacheMock

type MemoryCacheMock struct {
	PrepareAsyncMock mMemoryCacheMockPrepareAsync

	PrepareNotifyMock mMemoryCacheMockPrepareNotify

	PrepareSyncMock mMemoryCacheMockPrepareSync
	// contains filtered or unexported fields
}

MemoryCacheMock implements MemoryCache

func NewMemoryCacheMock

func NewMemoryCacheMock(t minimock.Tester) *MemoryCacheMock

NewMemoryCacheMock returns a mock for MemoryCache

func (*MemoryCacheMock) MinimockFinish

func (m *MemoryCacheMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*MemoryCacheMock) MinimockPrepareAsyncDone

func (m *MemoryCacheMock) MinimockPrepareAsyncDone() bool

MinimockPrepareAsyncDone returns true if the count of the PrepareAsync invocations corresponds the number of defined expectations

func (*MemoryCacheMock) MinimockPrepareAsyncInspect

func (m *MemoryCacheMock) MinimockPrepareAsyncInspect()

MinimockPrepareAsyncInspect logs each unmet expectation

func (*MemoryCacheMock) MinimockPrepareNotifyDone

func (m *MemoryCacheMock) MinimockPrepareNotifyDone() bool

MinimockPrepareNotifyDone returns true if the count of the PrepareNotify invocations corresponds the number of defined expectations

func (*MemoryCacheMock) MinimockPrepareNotifyInspect

func (m *MemoryCacheMock) MinimockPrepareNotifyInspect()

MinimockPrepareNotifyInspect logs each unmet expectation

func (*MemoryCacheMock) MinimockPrepareSyncDone

func (m *MemoryCacheMock) MinimockPrepareSyncDone() bool

MinimockPrepareSyncDone returns true if the count of the PrepareSync invocations corresponds the number of defined expectations

func (*MemoryCacheMock) MinimockPrepareSyncInspect

func (m *MemoryCacheMock) MinimockPrepareSyncInspect()

MinimockPrepareSyncInspect logs each unmet expectation

func (*MemoryCacheMock) MinimockWait

func (m *MemoryCacheMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

func (*MemoryCacheMock) PrepareAsync

func (mmPrepareAsync *MemoryCacheMock) PrepareAsync(e1 smachine.ExecutionContext, fn AsyncCallFunc) (a1 smachine.AsyncCallRequester)

PrepareAsync implements MemoryCache

func (*MemoryCacheMock) PrepareAsyncAfterCounter

func (mmPrepareAsync *MemoryCacheMock) PrepareAsyncAfterCounter() uint64

PrepareAsyncAfterCounter returns a count of finished MemoryCacheMock.PrepareAsync invocations

func (*MemoryCacheMock) PrepareAsyncBeforeCounter

func (mmPrepareAsync *MemoryCacheMock) PrepareAsyncBeforeCounter() uint64

PrepareAsyncBeforeCounter returns a count of MemoryCacheMock.PrepareAsync invocations

func (*MemoryCacheMock) PrepareNotify

func (mmPrepareNotify *MemoryCacheMock) PrepareNotify(e1 smachine.ExecutionContext, fn CallFunc) (n1 smachine.NotifyRequester)

PrepareNotify implements MemoryCache

func (*MemoryCacheMock) PrepareNotifyAfterCounter

func (mmPrepareNotify *MemoryCacheMock) PrepareNotifyAfterCounter() uint64

PrepareNotifyAfterCounter returns a count of finished MemoryCacheMock.PrepareNotify invocations

func (*MemoryCacheMock) PrepareNotifyBeforeCounter

func (mmPrepareNotify *MemoryCacheMock) PrepareNotifyBeforeCounter() uint64

PrepareNotifyBeforeCounter returns a count of MemoryCacheMock.PrepareNotify invocations

func (*MemoryCacheMock) PrepareSync

func (mmPrepareSync *MemoryCacheMock) PrepareSync(e1 smachine.ExecutionContext, fn CallFunc) (s1 smachine.SyncCallRequester)

PrepareSync implements MemoryCache

func (*MemoryCacheMock) PrepareSyncAfterCounter

func (mmPrepareSync *MemoryCacheMock) PrepareSyncAfterCounter() uint64

PrepareSyncAfterCounter returns a count of finished MemoryCacheMock.PrepareSync invocations

func (*MemoryCacheMock) PrepareSyncBeforeCounter

func (mmPrepareSync *MemoryCacheMock) PrepareSyncBeforeCounter() uint64

PrepareSyncBeforeCounter returns a count of MemoryCacheMock.PrepareSync invocations

type MemoryCacheMockPrepareAsyncExpectation

type MemoryCacheMockPrepareAsyncExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

MemoryCacheMockPrepareAsyncExpectation specifies expectation struct of the MemoryCache.PrepareAsync

func (*MemoryCacheMockPrepareAsyncExpectation) Then

Then sets up MemoryCache.PrepareAsync return parameters for the expectation previously defined by the When method

type MemoryCacheMockPrepareAsyncParams

type MemoryCacheMockPrepareAsyncParams struct {
	// contains filtered or unexported fields
}

MemoryCacheMockPrepareAsyncParams contains parameters of the MemoryCache.PrepareAsync

type MemoryCacheMockPrepareAsyncResults

type MemoryCacheMockPrepareAsyncResults struct {
	// contains filtered or unexported fields
}

MemoryCacheMockPrepareAsyncResults contains results of the MemoryCache.PrepareAsync

type MemoryCacheMockPrepareNotifyExpectation

type MemoryCacheMockPrepareNotifyExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

MemoryCacheMockPrepareNotifyExpectation specifies expectation struct of the MemoryCache.PrepareNotify

func (*MemoryCacheMockPrepareNotifyExpectation) Then

Then sets up MemoryCache.PrepareNotify return parameters for the expectation previously defined by the When method

type MemoryCacheMockPrepareNotifyParams

type MemoryCacheMockPrepareNotifyParams struct {
	// contains filtered or unexported fields
}

MemoryCacheMockPrepareNotifyParams contains parameters of the MemoryCache.PrepareNotify

type MemoryCacheMockPrepareNotifyResults

type MemoryCacheMockPrepareNotifyResults struct {
	// contains filtered or unexported fields
}

MemoryCacheMockPrepareNotifyResults contains results of the MemoryCache.PrepareNotify

type MemoryCacheMockPrepareSyncExpectation

type MemoryCacheMockPrepareSyncExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

MemoryCacheMockPrepareSyncExpectation specifies expectation struct of the MemoryCache.PrepareSync

func (*MemoryCacheMockPrepareSyncExpectation) Then

Then sets up MemoryCache.PrepareSync return parameters for the expectation previously defined by the When method

type MemoryCacheMockPrepareSyncParams

type MemoryCacheMockPrepareSyncParams struct {
	// contains filtered or unexported fields
}

MemoryCacheMockPrepareSyncParams contains parameters of the MemoryCache.PrepareSync

type MemoryCacheMockPrepareSyncResults

type MemoryCacheMockPrepareSyncResults struct {
	// contains filtered or unexported fields
}

MemoryCacheMockPrepareSyncResults contains results of the MemoryCache.PrepareSync

Jump to

Keyboard shortcuts

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