Expand description
Re-exports§
pub use crate::renderer::RenderStats;
Structs§
- Backend
Stats - Backend work since the last
CountingBackend::take_stats: how much a frame pushed at the terminal. Because ratatui diffs buffers before flushing,cells_drawncounts only cells that actually changed — a frame that repaints a settled screen costs nothing. - Counting
Backend - A
TestBackendthat counts what rendering pushes at it, for tests that bound rendering work instead of timing it. - Fake
Executor - A deterministic command runner for integration tests.
- Fake
Filesystem - An in-memory filesystem used by command-oriented tests.
- FakeGit
- A small stateful Git model. It keeps working-tree, index, and committed snapshots separate so staging and discarding have observable semantics.
- Fake
GitFile - Recording
Backend - Test
Terminal - Deterministic terminal wrapper used by focused golden tests.
- TestUi
- A whole UI scenario: the app, the renderer that owns its scrollback, the terminal it draws into, and the receiver for the commands the app sends.
- Test
UiBuilder - Builds a
TestUi: the terminal dimensions plus every app-scenario option a test cares about. Defaults match a plainmake_app()-style scenario.
Enums§
- Backend
Event - A backend that records terminal history operations without involving a real terminal. It is intentionally small: only operations with an observable presentation contract are recorded.
- Stream
Content - The shape of message
TestUi::stream_messagestreams.
Traits§
- Buffers
Reader - A backend whose screen and scrollback buffers can be read back, so a
TestUibuilt on it can expose viewport/history/conversation text.
Functions§
- assert_
buffer_ eq - Asserts
buffer’s visible text matchesexpectedrow-by-row after trimming trailing spaces, panicking on the first mismatched line with the full buffer dumped. - buffer_
text - chunk_
message - compaction_
update - has_
cell - Whether any cell drawn with
symbolsatisfiespredicate. - line_
text - row_
containing - row_
text - rows_
with_ background - How many rows contain at least one cell with
background. - session_
update - text_
chunk - text_
chunk_ with_ id - text_
diff - thought_
chunk - tool_
completed