Documentation
¶
Overview ¶
Package restest provides optional helpers for tests that use the production github.com/omcrgnt/res.Registry implementation (res.New, res.Global). Import only from test code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustAddAll ¶
MustAddAll is AddAll that panics on error.
func ResetGlobal ¶
ResetGlobal replaces res.Global with an empty registry and returns it. Use for tests that exercise the shared registry (e.g. after */use init).
func With ¶
With returns a registry with values registered in order via res.Registry.Add.
func WithTagged ¶
WithTagged returns a registry containing one value registered via res.Registry.AddWithTags.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.