Skip to main content

Crate mitsuami_headless

Crate mitsuami_headless 

Source
Expand description

An in-memory backend for integration tests.

It keeps a mirror of the native tree like a real backend would, validates every command against the protocol (panicking on violations), and measures text with fixed, platform-independent metrics so layouts are deterministic: each character is 0.5em wide and lines are 1.25em tall.

Structs§

FakeServices
Install with Ui::set_services.
FakeServicesHandle
The test’s side of FakeServices.
HeadlessBackend
The backend. Hand it to Ui::new; keep a HeadlessHandle to inspect it afterwards.
HeadlessHandle
Shared access to a HeadlessBackend after it was moved into a Ui.
Pending
A request waiting for the test to answer it.

Functions§

metrics
Fixed metrics: 16px body text, 4/8/12/16/24 spacing, scale factor 1.

Type Aliases§

PendingAlert
PendingLaunch
A file, folder or URL to open in another app.
PendingOpen
PendingSave
PendingTrash
Items to move to the trash; the test moves them (or not) and answers.