cachetest

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package cachetest is a test suite for pokeapi.Cache implementations. Simply call cachetest.TestCache from your cache's test file.

As it imports package testing, cachetest should not be used in normal application code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestCache

func TestCache[C pokeapi.Cache](t *testing.T, newCache NewCacheFn[C])

Types

type NewCacheFn

type NewCacheFn[T pokeapi.Cache] func(size int) T

Jump to

Keyboard shortcuts

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