testutil

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: GPL-3.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package testutil provides shared helpers for tests across packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenStore

func OpenStore(t *testing.T) *db.Store

OpenStore opens an in-memory store for tests. If the test binary was built without the sqlite_fts5 tag the schema exec fails with "no such module: fts5"; in that case the test is skipped with a message pointing at the correct invocation instead of erroring out.

func OpenStoreFile

func OpenStoreFile(t *testing.T) *db.Store

OpenStoreFile opens a file-backed store inside t.TempDir() for tests that need an on-disk database. Same FTS5 skip semantics as OpenStore.

Types

This section is empty.

Jump to

Keyboard shortcuts

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