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

device

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package device abstracts on-device (adb) validation (SPEC §4). The real adapter shells out to adb against hardware; Mock returns a fixed report so the loop and its tests run without a device.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mock

type Mock struct {
	Healthy bool
}

Mock is a deterministic on-device validator for tests and the mock backend.

func (Mock) Validate

func (m Mock) Validate(_ context.Context) (Report, error)

Validate returns a fixed report reflecting m.Healthy; it never touches adb.

type Report

type Report struct {
	OK     bool
	Detail string
}

Report is the outcome of an on-device validation run.

Jump to

Keyboard shortcuts

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