Help us shape the future of Go! Take the 2026 Go Developer Survey

storetest

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package storetest is a conformance suite for SystemAuth social login stores. Every LoginSessionStore, oauthclient.StateStore and ConsentStore implementation should pass it:

func TestMyStore(t *testing.T) {
	storetest.LoginSessionStore(t, func(t *testing.T) systemauth.LoginSessionStore {
		return newMyStore(t)
	})
}

Index

Constants

View Source
const Concurrency = 16

Concurrency is how many goroutines race in the single-use tests.

Variables

This section is empty.

Functions

func ConsentStore

func ConsentStore(t *testing.T, newStore func(t *testing.T) systemauth.ConsentStore)

ConsentStore runs the conformance suite against stores created by newStore.

func LoginSessionStore

func LoginSessionStore(t *testing.T, newStore func(t *testing.T) systemauth.LoginSessionStore)

LoginSessionStore runs the conformance suite against stores created by newStore. Each subtest gets a fresh store.

func StateStore

func StateStore(t *testing.T, newStore func(t *testing.T) oauthclient.StateStore)

StateStore runs the conformance suite for oauthclient.StateStore implementations used as SystemAuth login state stores.

Types

This section is empty.

Jump to

Keyboard shortcuts

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