Expand description
Presentar YAML Support (PROBAR-SPEC-015)
Native support for testing presentar TUI configurations with 100-point falsification protocol (F001-F100). Presentar YAML support for probar.
This module provides native support for testing presentar YAML configurations, enabling automated validation of TUI dashboards, terminal rendering, and falsification protocols.
§Architecture
┌─────────────────────────────────────────────────────────┐
│ Presentar Integration │
├─────────────────────────────────────────────────────────┤
│ schema.rs → YAML schema types (PresentarConfig) │
│ validator.rs → Config validation rules │
│ terminal.rs → CellBuffer snapshot assertions │
│ falsification.rs → F001-F100 generator │
└─────────────────────────────────────────────────────────┘§References
- Tretmans (2008): Model-Based Testing of Reactive Systems
- Claessen & Hughes (2000): QuickCheck property-based testing
- Jia & Harman (2011): Mutation Testing theory
Structs§
- Cell
- A single terminal cell.
- Color
- RGB color representation.
- Falsification
Check - A single falsification check.
- Falsification
Result - Result of a falsification check.
- Keybinding
Config - Keybinding configuration.
- Layout
Config - Layout configuration.
- Panel
Config - Generic panel configuration.
- Panel
Configs - Panel configurations.
- Presentar
Config - Presentar configuration schema (ptop.yaml).
- Terminal
Snapshot - Terminal snapshot for testing.
- Theme
Config - Theme configuration.
- Validation
Result - Validation result with warnings.
Enums§
- Panel
Type - Panel type enumeration.
- Presentar
Error - Presentar validation errors.
- Terminal
Assertion - Terminal assertion types.
Constants§
- FALSIFICATION_
COUNT - Number of falsification checks (F001-F100).
- SCHEMA_
VERSION - Presentar schema version supported by this module.
Functions§
- generate_
falsification_ playbook - Generate a falsification playbook from presentar configuration.
- parse_
and_ validate - Parse and validate YAML in one step.
- validate_
config - Validate a presentar configuration.