Documentation
¶
Overview ¶
Package testutils has test utility functions for h2o modules
Index ¶
- func ExecOnDevice(ctx context.Context, adbTurbo, device, cmd string, args []string) (string, error)
- func GetAdbPorts() (string, string, string, error)
- func KillEmu(launcher, adbServerPort, adbPort, emuPort string) error
- func PickUnusedPort() (port int, err error)
- func RunfilesRoot() string
- func SetupEmu(launcher, adbServerPort, adbPort, emuPort string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecOnDevice ¶
ExecOnDevice runs the desired command on the device.
func GetAdbPorts ¶
GetAdbPorts picks unused ports for the adb_port, adb_server_port and emulator_port.
func PickUnusedPort ¶
PickUnusedPort returns the first unused port that it finds. Note that this function has an inherent race condition. Callers should bind to the port as soon as possible.
func RunfilesRoot ¶
func RunfilesRoot() string
RunfilesRoot returns the path to the test runfiles dir
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.