cachetest

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package cachetest holds the conformance suite every cache.Store must pass. Run it against your own Store, and against the real server of a remote adapter, to prove the same contract as cache/local.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(t *testing.T, f Factory)

Run runs the conformance suite against the Store f builds.

Types

type Factory

type Factory struct {
	New func(t *testing.T) cache.Store
}

Factory builds the Store under test. Every call returns a Store whose keys start empty (a fresh Store, or one on a unique key space).

Jump to

Keyboard shortcuts

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