Documentation
¶
Overview ¶
Package problemtest checks that a client's message catalog covers an application's problem types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckArgs ¶
CheckArgs returns an error if the ICU message msg does not parse or uses an argument not in params.
func CheckCatalog ¶
CheckCatalog fails t unless the JSON catalog at path has a message at apiErrors.<code> for every type in registries, using only the type's Params as ICU arguments. The shared codes' messages ship with @parallelworks/problem, so the catalog needs only the application's own.
func MessageArgs ¶
MessageArgs returns the names of the arguments an ICU message format string uses, including those inside plural and select branches.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.