testing library

What a test of a game reaches for and a game does not: hearing what the game told the tools watching it.

Classes

MemoryCloudSaves
A CloudSaveStore in memory, for a test of what syncs and what is kept: one place, shared by however many devices a test plays.
ScriptedMouseCapture
A MouseCapture a test drives: it takes the pointer when asked, unless told not to, gathers the motion a test moves it by while it holds it, and lets go when asked or when loseFocus takes it away.

Functions

captureToolEvents(ToolEventPoster heard) → Registration
Sends everything postToolEvent posts to heard instead of the VM service, until the returned Registration is cancelled, which puts the VM service back.

Typedefs

ToolEventPoster = void Function(String kind, Map<String, Object?> data)
Posts what happened in a game, to whoever watches it from outside: the shape of postToolEvent, and of what a test hears it through.