testutils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package testutils provides test-only API endpoints. These routes are only registered when SHISHO_TEST_MODE=true.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(e *echo.Group, db *bun.DB, manager *plugins.Manager, installer *plugins.Installer, fileRoot string)

RegisterRoutes registers test-only routes. These endpoints should ONLY be registered in test environments. fileRoot is where POST /test/books writes files for withFileOnDisk. It must belong to this server alone, because DELETE /test/ereader removes it.

Types

This section is empty.

Directories

Path Synopsis
Package goconsts reads string constants out of Go source so a test can check that every constant of a family is handled, without a hand-kept list that goes stale the same way the code under test would.
Package goconsts reads string constants out of Go source so a test can check that every constant of a family is handled, without a hand-kept list that goes stale the same way the code under test would.
Package testdb opens the database that package tests run against.
Package testdb opens the database that package tests run against.
Package testumask sets the process umask for the length of a test.
Package testumask sets the process umask for the length of a test.

Jump to

Keyboard shortcuts

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