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. |
Click to show internal directories.
Click to hide internal directories.