Documentation
¶
Overview ¶
Package testutil provides shared test helpers for the oCMS project.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MinimalThemeFuncMap ¶ added in v0.9.0
MinimalThemeFuncMap returns the minimal template functions needed to parse theme templates in tests. Use this in any test that creates a theme.Manager and calls LoadThemes or SetFuncMap.
func TestDB ¶
TestDB creates a temporary test database with core migrations applied. Returns the database and a cleanup function that should be deferred.
func TestLogger ¶
TestLogger creates a silent test logger that only outputs warnings and errors.
func TestLoggerSilent ¶
TestLoggerSilent creates a completely silent test logger (error level only).
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package moduleutil provides module-specific test helpers for the oCMS project.
|
Package moduleutil provides module-specific test helpers for the oCMS project. |
Click to show internal directories.
Click to hide internal directories.