testutils

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: MIT Imports: 21 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, epubRoot string)

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

Types

This section is empty.

Directories

Path Synopsis
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