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