cachetest

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package cachetest provides reusable cache adapter contract tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertStoreContract

func AssertStoreContract(t testing.TB, newStore StoreFactory, advanceTime ...func(time.Duration))

AssertStoreContract verifies behavior shared by cache store implementations.

Types

type StoreFactory

type StoreFactory func(testing.TB) cache.Store

StoreFactory builds a fresh cache store for one contract test run.

Jump to

Keyboard shortcuts

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