Documentation ¶
Overview ¶
Package servicetest provides functions and utilities that might be useful for testing custom Bento builds.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunCLIWithArgs ¶
RunCLIWithArgs executes Bento as a CLI with an explicit set of arguments. This is useful for testing commands without needing to modify os.Args.
This call blocks until either:
1. The service shuts down gracefully due to the inputs closing 2. A termination signal is received 3. The provided context has a deadline that is reached, triggering graceful termination 4. The provided context is cancelled (WARNING, this prevents graceful termination)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.