testutils

package
v0.1.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package testutils provides shared testing utilities for backend packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTestCollection

func CreateTestCollection(t *testing.T, db *database.Queries, name string) int64

CreateTestCollection creates a test collection and returns its ID

func SetupTestDB

func SetupTestDB(t *testing.T, tables ...string) *database.Queries

SetupTestDB creates an in-memory SQLite database with specified tables

Types

This section is empty.

Jump to

Keyboard shortcuts

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