Module testing

Source
Expand description

Testing helpers for interactive interfaces.

Structs§

CursiveTestingBackend
The testing backend. It feeds a predetermined list of events to the Cursive event loop and stores a virtual terminal for Cursive to draw on.

Enums§

CursiveTestingEvent
The kind of events that can be

Functions§

screen_to_string
Convert the screenshot into a string for assertions, such as for use with insta::assert_snapshot!.

Type Aliases§

Screen
Represents a “screenshot” of the terminal taken at a point in time.