cachestest

package
v2.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertCacheRobustness

func AssertCacheRobustness(t *testing.T, cacheSupplier func() stored_requests.CacheJSON)

AssertCacheRobustness runs tests which can be used to validate any Cache that is 100% reliable. That is, its Save() and Invalidate() functions _alway_ work.

The cacheSupplier should be a function which returns a new Cache (with no data inside) on every call. This will be called from separate Goroutines to make sure that different tests don't conflict.

Types

This section is empty.

Jump to

Keyboard shortcuts

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