cachetest

package
v0.0.0-...-bc03976 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 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: TestBasic},
	{Size: 2, Func: TestEviction},
}

Tests is a list of all Cacher tests

Functions

func IntSizeFunc

func IntSizeFunc(ids.ID, int64) int

func TestBasic

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

func TestEviction

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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