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 exercises selected portable backend assertions. It mutates fixed conformance keys, then calls MakeUnavailable last. Most live calls use Background, so the backend/test runner must bound operations. This is not expiry precision, race, topology or ownership-lease qualification.
Types ¶
type BackendHarness ¶
type BackendHarness struct {
// Backend is an exclusively test-owned backend with an empty test-key namespace.
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.
Click to show internal directories.
Click to hide internal directories.