Documentation
¶
Overview ¶
Package testutil holds tui-base's house-rule test helpers: architecture layering (CheckNoImports) and descriptive type naming (CheckDescriptiveStructNames). The render/layout checks moved to github.com/jarvisfriends/snap/rendercheck (tui-base ROADMAP SP-14).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDescriptiveStructNames ¶ added in v0.1.11
CheckDescriptiveStructNames verifies that structs are not generically named "Model" or "model".
func CheckNoImports ¶ added in v0.1.15
CheckNoImports asserts that no package matched by pkgPattern directly imports a package whose path starts with any of the forbidden prefixes. Use it to enforce architectural layering in a plain unit test, e.g. the theme package must never grow a dependency on the router:
testutil.CheckNoImports(t,
"github.com/jarvisfriends/tui-base/theme",
"github.com/jarvisfriends/tui-base/router")
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.