keystoretest

package
v0.1.35 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package keystoretest provides shared test suites for all KeyStore implementations. Each backend (inmem, gorm, fs, gae) calls these tests with its own factory function.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunAll

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

RunAll runs the complete KeyStore test suite against the provided factory.

func TestDeleteKey

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

func TestDeleteNonexistent

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

func TestGetCurrentKid added in v0.0.38

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

func TestKidResolverAsymmetric added in v0.0.38

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

func TestKidResolverBasic added in v0.0.38

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

func TestListKeys

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

func TestListKeysEmpty

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

func TestMultipleHosts

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

func TestNotFound

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

func TestOverwriteKey

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

func TestPersistence

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

func TestRegisterAndGet

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

func TestRegisterAndGetAsymmetricKey added in v0.0.35

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

Types

type Factory

type Factory func(t *testing.T) keys.KeyStorage

Factory creates a fresh KeyStorage for each test.

Jump to

Keyboard shortcuts

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