adaptertest

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package adaptertest publishes the conformance suite used by first-party and third-party database adapters.

Index

Constants

View Source
const ReleaseUpgradeBaseline = "ecf48ac"

ReleaseUpgradeBaseline identifies the first adapter-bearing revision. The repository did not have semantic release tags when this fixture was added.

Variables

This section is empty.

Functions

func AssertReleaseUpgrade

func AssertReleaseUpgrade(t *testing.T, database betterauth.DatabaseAdapter)

AssertReleaseUpgrade proves baseline data remains available through current indexed authentication queries and current mutations.

func LegacyCoreSchema

func LegacyCoreSchema() betterauth.Schema

LegacyCoreSchema returns the frozen schema shape shipped at ReleaseUpgradeBaseline. That revision predates declarative non-unique and compound indexes but otherwise has the current core fields.

func Run

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

Run executes the core Better Auth adapter contract.

func SeedReleaseBaseline

func SeedReleaseBaseline(t *testing.T, database betterauth.DatabaseAdapter)

SeedReleaseBaseline stores representative data in every core model using only the schema available at ReleaseUpgradeBaseline.

Types

type Factory

type Factory func(*testing.T) betterauth.DatabaseAdapter

Jump to

Keyboard shortcuts

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