kidstoretest

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: 5 Imported by: 0

Documentation

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 KidStorage test suite against the provided factory.

func TestAddAndGetByKid

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

func TestAsymmetricKeyRoundTrip

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

func TestCleanExpired

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

func TestExpiredKidNotReturned

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

func TestGetByUnknownKid

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

func TestGetKeyByClientIDAlwaysNotFound

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

func TestOverwriteSameKid

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

func TestPersistence

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

func TestRemoveIdempotent

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

func TestZeroExpiryNeverExpires

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

Types

type Factory

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

Factory creates a fresh KidStorage for each test.

Jump to

Keyboard shortcuts

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