storetest

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package storetest holds the behavioral contract suite that every Auth-All storage adapter must pass. PostgreSQL and SQLite run the same suite.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOrganization added in v0.4.0

func NewOrganization(name, slug string) *store.Organization

NewOrganization returns a valid organization value for tests.

func NewUser

func NewUser(email string) *store.User

NewUser returns a valid user value for tests.

func Run

func Run(t *testing.T, newStore Factory)

Run executes the complete storage contract suite against one adapter that uses the default physical schema.

func RunWithOptions added in v0.3.0

func RunWithOptions(t *testing.T, newStore Factory, o schema.Options)

RunWithOptions executes the suite against an adapter that uses the given physical schema options.

Types

type Factory

type Factory func(t *testing.T) store.Store

Factory returns a migrated empty store for one test.

Jump to

Keyboard shortcuts

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