console

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Overview

Package console provides the DUT Console API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Console

type Console struct {
	// contains filtered or unexported fields
}

Console is the device Console API.

func New

func New(dut binding.DUT) *Console

New constructs a new instance of the Console API. Tests must not call this directly

func (*Console) StartCapture

func (c *Console) StartCapture(t testing.TB, outw, errw io.Writer) StopCaptureFunc

StartCapture starts copying console stdout and stderr to out and err, and returns a function that stops copying console stdout and stderr.

type StopCaptureFunc

type StopCaptureFunc func(t testing.TB)

StopCaptureFunc is a function that stops copying console stdout and stderr

Jump to

Keyboard shortcuts

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