Documentation
¶
Overview ¶
Package commandtest provides helpers for testing commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Case ¶
type Case struct {
Input base.IncomingMessage
Platform Platform
OtherTexts []string
APIResp string
APIResps []string
ConfigData string
RunBefore []SetupFunc
RunAfter []TeardownFunc
Want []*base.Message
}
Case is a test case for running command tests.
type Platform ¶
type Platform uint8
Platform indicates which platform to consider the message to be sent from.
type TeardownFunc ¶
TeardownFunc is a function to be run after a test case runs.
Click to show internal directories.
Click to hide internal directories.