Documentation
¶
Overview ¶
Package simulator runs the official BitBox02 Linux simulator binary and returns a ready-to-use firmware.Communication.
The simulator is Linux/amd64 only. On other platforms Launch reports ErrUnsupportedPlatform and tests should t.Skip.
Index ¶
Constants ¶
const Port = 15423
Port is the TCP port the BitBox02 simulator listens on once started.
Variables ¶
var ErrUnsupportedPlatform = errors.New("bitbox/simulator: requires linux/amd64")
ErrUnsupportedPlatform indicates the host cannot run the BitBox02 simulator binary.
Functions ¶
func Simulators ¶
Simulators returns the embedded list of BitBox02 simulator binaries the testkit knows about, sorted newest-first. Mirrors upstream's api/firmware/testdata/simulators.json.
Override the list at runtime by setting the BITBOX_SIMULATOR env var to an absolute path; Launch will use that instead.
Types ¶
type Instance ¶
Instance is a running BitBox02 simulator with an attached client.