Documentation ¶
Index ¶
- type AsyncCallFunc
- type CallFunc
- type DefaultMemoryCacheAdapter
- func (a *DefaultMemoryCacheAdapter) PrepareAsync(ctx smachine.ExecutionContext, fn AsyncCallFunc) smachine.AsyncCallRequester
- func (a *DefaultMemoryCacheAdapter) PrepareNotify(ctx smachine.ExecutionContext, fn CallFunc) smachine.NotifyRequester
- func (a *DefaultMemoryCacheAdapter) PrepareSync(ctx smachine.ExecutionContext, fn CallFunc) smachine.SyncCallRequester
- type MemoryCache
- type MemoryCacheMock
- func (m *MemoryCacheMock) MinimockFinish()
- func (m *MemoryCacheMock) MinimockPrepareAsyncDone() bool
- func (m *MemoryCacheMock) MinimockPrepareAsyncInspect()
- func (m *MemoryCacheMock) MinimockPrepareNotifyDone() bool
- func (m *MemoryCacheMock) MinimockPrepareNotifyInspect()
- func (m *MemoryCacheMock) MinimockPrepareSyncDone() bool
- func (m *MemoryCacheMock) MinimockPrepareSyncInspect()
- func (m *MemoryCacheMock) MinimockWait(timeout mm_time.Duration)
- func (mmPrepareAsync *MemoryCacheMock) PrepareAsync(e1 smachine.ExecutionContext, fn AsyncCallFunc) (a1 smachine.AsyncCallRequester)
- func (mmPrepareAsync *MemoryCacheMock) PrepareAsyncAfterCounter() uint64
- func (mmPrepareAsync *MemoryCacheMock) PrepareAsyncBeforeCounter() uint64
- func (mmPrepareNotify *MemoryCacheMock) PrepareNotify(e1 smachine.ExecutionContext, fn CallFunc) (n1 smachine.NotifyRequester)
- func (mmPrepareNotify *MemoryCacheMock) PrepareNotifyAfterCounter() uint64
- func (mmPrepareNotify *MemoryCacheMock) PrepareNotifyBeforeCounter() uint64
- func (mmPrepareSync *MemoryCacheMock) PrepareSync(e1 smachine.ExecutionContext, fn CallFunc) (s1 smachine.SyncCallRequester)
- func (mmPrepareSync *MemoryCacheMock) PrepareSyncAfterCounter() uint64
- func (mmPrepareSync *MemoryCacheMock) PrepareSyncBeforeCounter() uint64
- type MemoryCacheMockPrepareAsyncExpectation
- type MemoryCacheMockPrepareAsyncParams
- type MemoryCacheMockPrepareAsyncResults
- type MemoryCacheMockPrepareNotifyExpectation
- type MemoryCacheMockPrepareNotifyParams
- type MemoryCacheMockPrepareNotifyResults
- type MemoryCacheMockPrepareSyncExpectation
- type MemoryCacheMockPrepareSyncParams
- type MemoryCacheMockPrepareSyncResults
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 DefaultMemoryCacheAdapter ¶
type DefaultMemoryCacheAdapter struct {
// contains filtered or unexported fields
}
func CreateMemoryCacheAdapter ¶
func CreateMemoryCacheAdapter(ctx context.Context, svc memorycache.Service) *DefaultMemoryCacheAdapter
func (*DefaultMemoryCacheAdapter) PrepareAsync ¶
func (a *DefaultMemoryCacheAdapter) PrepareAsync(ctx smachine.ExecutionContext, fn AsyncCallFunc) smachine.AsyncCallRequester
func (*DefaultMemoryCacheAdapter) PrepareNotify ¶
func (a *DefaultMemoryCacheAdapter) PrepareNotify(ctx smachine.ExecutionContext, fn CallFunc) smachine.NotifyRequester
func (*DefaultMemoryCacheAdapter) PrepareSync ¶
func (a *DefaultMemoryCacheAdapter) PrepareSync(ctx smachine.ExecutionContext, fn CallFunc) smachine.SyncCallRequester
type MemoryCache ¶
type MemoryCache interface { PrepareSync(ctx smachine.ExecutionContext, fn CallFunc) smachine.SyncCallRequester PrepareAsync(ctx smachine.ExecutionContext, fn AsyncCallFunc) smachine.AsyncCallRequester PrepareNotify(ctx smachine.ExecutionContext, fn CallFunc) smachine.NotifyRequester }
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 ¶
func (e *MemoryCacheMockPrepareAsyncExpectation) Then(a1 smachine.AsyncCallRequester) *MemoryCacheMock
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 ¶
func (e *MemoryCacheMockPrepareNotifyExpectation) Then(n1 smachine.NotifyRequester) *MemoryCacheMock
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 ¶
func (e *MemoryCacheMockPrepareSyncExpectation) Then(s1 smachine.SyncCallRequester) *MemoryCacheMock
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