keystoretest

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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