events

package
v0.1.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package events prints and responds to test events.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionStarted

func ActionStarted(t testing.TB, format string, dev binding.Device) testing.TB

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

func AddAfterTests(cb func(*int) error)

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

func Breakpoint(t testing.TB, msg string) error

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.

func TestsDone added in v0.1.2

func TestsDone(exitCode *int) (rerr error)

TestsDone notifies that the test cases are complete and that the testbed is about to be released and runs all the AfterTestsCallbacks.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL