Skip to main content

Module testing

Module testing 

Source

Structs§

Cell
A single cell in the terminal buffer, storing both a character and its style.
TestTerminal
A virtual terminal buffer for testing terminal output. Captures all writes, tracks cursor position, and parses ANSI escape sequences including SGR (Select Graphic Rendition) codes for style tracking.

Functions§

assert_buffer_eq
Asserts a test terminal buffer matches the expected output. Each element of the expected vector represents a row. Trailing whitespace is ignored on each line.
key
render_component
render_component_with_renderer
render_lines
sample_options