Documentation ¶
Overview ¶
Package events prints and responds to test events.
Index ¶
- func ActionStarted(t testing.TB, format string, dev binding.Device) testing.TB
- func AddAfterTests(cb func(*int) error)
- func AddBeforeTests(cb func(*binding.Reservation) error)
- func Breakpoint(t testing.TB, msg string) error
- func ReservationDone() error
- func TestStarted(debugMode bool)
- func TestsDone(exitCode *int) (rerr error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActionStarted ¶
ActionStarted notifies that the specified action has started. Used to restrict the library to calling t.Helper and t.Log only.
func AddAfterTests ¶ added in v0.1.2
AddAfterTests adds a callback to run after the tests finish executing.
func AddBeforeTests ¶ added in v0.1.2
func AddBeforeTests(cb func(*binding.Reservation) error)
AddBeforeTests adds a callback to run before the tests start executing.
func Breakpoint ¶
Breakpoint notifies a breakpoint has been reached, which suspends test execution until the user indicates test execution should be resumed. Returns an error if the test is not in debug mode.
func ReservationDone ¶
func ReservationDone() error
ReservationDone notifies that the reservation is complete and that the tests are about to begin execution and runs all the BeforeTestsCallbacks.
func TestStarted ¶
func TestStarted(debugMode bool)
TestStarted notifies that the test has started, whether it was started in debug mode, and that the testbed is about to be reserved.
Types ¶
This section is empty.