acceptance

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package acceptance provides a suite of acceptance tests for Cache implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

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

Run runs a standard suite of tests against the provided Cache implementation. The factory function must return a new, empty Cache for each test.

Types

type Factory

type Factory interface {
	Make() (cache driver.Conn, cleanup func())
}

type FactoryFunc

type FactoryFunc func() (driver.Conn, func())

func (FactoryFunc) Make

func (f FactoryFunc) Make() (driver.Conn, func())

Jump to

Keyboard shortcuts

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