Help us shape the future of Go! Take the 2026 Go Developer Survey

devicetest

package
v0.57.21 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package devicetest checks a device.Device against its contract, so native tests and browser fixtures run the same checks on every implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(ctx context.Context, d device.Device) error

Check runs the contract checks on an empty device.

func ExpectFile

func ExpectFile(ctx context.Context, d device.Device, name string, want []byte) error

ExpectFile checks that the device lists name with want's length and reads back want.

Types

This section is empty.

Jump to

Keyboard shortcuts

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