tests

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package tests. testkit.go - Bridges snapdb's generic lifecycle with goxide's specific schema and engine (database/sql).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DB

func DB() *sql.DB

DB returns the live *sql.DB, or nil before setup completes.

func GoxideDataInit

func GoxideDataInit(_ *snapdb.Environment) error

GoxideDataInit maps to snapdb.DataInitializer.

func GoxideEngineInit

func GoxideEngineInit(env *snapdb.Environment) (snapdb.Engine, error)

GoxideEngineInit maps to snapdb.EngineInitializer.

func GoxideSchemaInit

func GoxideSchemaInit(env *snapdb.Environment) error

GoxideSchemaInit maps to snapdb.SchemaInitializer. env.Engine() is nil here.

func RunGoxideTestMain

func RunGoxideTestMain(m *testing.M, opts ...snapdb.Option)

RunGoxideTestMain sets up the SQLite test environment and runs the suite.

Types

This section is empty.

Jump to

Keyboard shortcuts

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