testdb

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package testdb provides migrated SQLite database fixtures for tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneMigratedSQLite

func CloneMigratedSQLite(t testing.TB, name string) string

CloneMigratedSQLite copies the migrated template database into t.TempDir and returns the cloned database path.

func NewMigratedSQLite

func NewMigratedSQLite(t testing.TB, name string) *database.DB

NewMigratedSQLite returns an isolated SQLite database with all migrations already applied. It avoids replaying the full migration set for every store test by cloning a process-local migrated template database.

Types

This section is empty.

Jump to

Keyboard shortcuts

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