testutil

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package testutil provides testing utilities for the snipo application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestContext

func TestContext() context.Context

TestContext returns a context for testing

func TestDB

func TestDB(t *testing.T) *sql.DB

TestDB creates an in-memory SQLite database for testing. It runs migrations and returns the database connection. The database is automatically closed when the test completes.

func TestLogger

func TestLogger() *slog.Logger

TestLogger returns a no-op logger for testing

Types

This section is empty.

Jump to

Keyboard shortcuts

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