Documentation
¶
Overview ¶
Package adaptertest publishes the conformance suite used by first-party and third-party database adapters.
Index ¶
Constants ¶
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 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