cachetest

package
v1.13.1-cache-cleanup Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const IntSize = ids.IDLen + 8

Variables

View Source
var Tests = []struct {
	Size int
	Func func(t *testing.T, c cache.Cacher[ids.ID, int64])
}{
	{Size: 1, Func: Basic},
	{Size: 2, Func: Eviction},
}

Tests is a list of all Cacher tests

Functions

func Basic added in v1.13.1

func Basic(t *testing.T, cache cache.Cacher[ids.ID, int64])

func Eviction added in v1.13.1

func Eviction(t *testing.T, cache cache.Cacher[ids.ID, int64])

func IntSizeFunc

func IntSizeFunc(ids.ID, int64) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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