Documentation
¶
Index ¶
- type Fake
- func (f *Fake) AssertCalled(t *testing.T, op Op, key string, times int)
- func (f *Fake) AssertNotCalled(t *testing.T, op Op, key string)
- func (f *Fake) AssertTotal(t *testing.T, op Op, times int)
- func (f *Fake) Cache() *cache.Cache
- func (f *Fake) Count(op Op, key string) int
- func (f *Fake) Reset()
- func (f *Fake) Total(op Op) int
- type Op
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fake ¶
type Fake struct {
// contains filtered or unexported fields
}
Fake exposes a deterministic in-memory store plus assertion helpers for tests. It wraps the memory store so no external services are needed.
func (*Fake) AssertCalled ¶
AssertCalled verifies key was touched by op the expected number of times.
func (*Fake) AssertNotCalled ¶
AssertNotCalled ensures key was never touched by op.
func (*Fake) AssertTotal ¶
AssertTotal ensures the total call count for an op matches times.
Click to show internal directories.
Click to hide internal directories.