cachetest

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package cachetest provides a shared backend conformance suite.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunBackendConformance

func RunBackendConformance(t *testing.T, harness BackendHarness)

RunBackendConformance verifies the portable Backend contract.

Types

type BackendHarness

type BackendHarness struct {
	Backend         cache.Backend
	MakeUnavailable func(*testing.T)
}

BackendHarness supplies a backend and a deterministic way to make it unavailable. MakeUnavailable is called after all live-backend checks.

Jump to

Keyboard shortcuts

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