Documentation
¶
Overview ¶
Package skilltest provides constructors for building skill.Skill values in tests. It lives in its own package (rather than a _test.go file) so that tests in other packages can use it, and because nothing in the production build graph imports it, it is never linked into the shipped binary.
Always prefer these constructors over a bare skill.Skill{} literal when the skill declares triggers: skill.MatchSkills keys off ParsedTriggers, so a literal that sets Triggers but leaves ParsedTriggers nil is treated as "no triggers" and silently matches every message.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.