storetest

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 13 Imported by: ? 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 storetest is a conformance suite for store implementations.

Every store shipped with the library runs it, and so should yours:

func TestSessions(t *testing.T) {
    storetest.Sessions(t, func(t *testing.T) session.Store { return newMyStore(t) })
}

Each factory call must return an empty store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Invites

func Invites(t *testing.T, newStore func(t *testing.T) invite.Store)

Invites runs the invite.Store conformance tests.

func Sessions

func Sessions(t *testing.T, newStore func(t *testing.T) session.Store)

Sessions runs the session.Store conformance tests.

func Users

func Users(t *testing.T, newStore func(t *testing.T) UserStore)

Users runs the iam.UserStore and password.CredentialStore conformance tests.

Types

type UserStore

type UserStore interface {
	iam.UserStore
	password.CredentialStore
}

UserStore is what Users needs: subjects, identities and credentials.

Jump to

Keyboard shortcuts

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