Documentation ¶
Index ¶
- func TestEvictFirstInFirstOut(t *testing.T, ...) func(*testing.T)
- func TestEvictLeastFrequentlyUsed(t *testing.T, ...) func(*testing.T)
- func TestEvictLeastRecentlyUsed(t *testing.T, ...) func(*testing.T)
- func TestEvictSize(t *testing.T, ...) func(*testing.T)
- func TestStash(t *testing.T, newFx func() stash.Stasher) func(*testing.T)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestEvictFirstInFirstOut ¶
func TestEvictFirstInFirstOut(t *testing.T, newFx func(timeToLive time.Duration, maxSize int) interface { stash.Stasher }) func(*testing.T)
TestEvictFirstInFirstOut can be used to validate the FIFO based eviction
func TestEvictLeastFrequentlyUsed ¶
func TestEvictLeastFrequentlyUsed(t *testing.T, newFx func(timeToLive time.Duration, maxSize int) interface { stash.Stasher }) func(*testing.T)
TestEvictLeastFrequentlyUsed can be used to validate that data that isn't used frequently is evicted
func TestEvictLeastRecentlyUsed ¶
func TestEvictLeastRecentlyUsed(t *testing.T, newFx func(timeToLive time.Duration, maxSize int) interface { stash.Stasher }) func(*testing.T)
TestEvictLeastRecentlyUsed can be used to validate the ability to evict data that has been used less than other data...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.