ratatui/tests
EdJoPaTo 2cfe82a47e
refactor(buffer): deprecate assert_buffer_eq! in favor of assert_eq! (#1007)
- Simplify `assert_buffer_eq!` logic.
- Deprecate `assert_buffer_eq!`.
- Introduce `TestBackend::assert_buffer_lines`.

Also simplify many tests involving buffer comparisons.

For the deprecation, just use `assert_eq` instead of `assert_buffer_eq`:

```diff
-assert_buffer_eq!(actual, expected);
+assert_eq!(actual, expected);
```

---

I noticed `assert_buffer_eq!` creating no test coverage reports and
looked into this macro. First I simplified it. Then I noticed a bunch of
`assert_eq!(buffer, …)` and other indirect usages of this macro (like
`TestBackend::assert_buffer`).

The good thing here is that it's mainly used in tests so not many
changes to the library code.
2024-05-13 18:13:46 -07:00
..
backend_termion.rs feat(terminal)!: add inline viewport (#114) 2023-04-17 14:23:50 +02:00
state_serde.rs refactor(buffer): deprecate assert_buffer_eq! in favor of assert_eq! (#1007) 2024-05-13 18:13:46 -07:00
stylize.rs refactor(buffer): deprecate assert_buffer_eq! in favor of assert_eq! (#1007) 2024-05-13 18:13:46 -07:00
terminal.rs refactor(buffer): deprecate assert_buffer_eq! in favor of assert_eq! (#1007) 2024-05-13 18:13:46 -07:00
widgets_barchart.rs refactor(buffer): deprecate assert_buffer_eq! in favor of assert_eq! (#1007) 2024-05-13 18:13:46 -07:00
widgets_block.rs refactor(buffer): deprecate assert_buffer_eq! in favor of assert_eq! (#1007) 2024-05-13 18:13:46 -07:00
widgets_calendar.rs refactor(buffer): deprecate assert_buffer_eq! in favor of assert_eq! (#1007) 2024-05-13 18:13:46 -07:00
widgets_canvas.rs refactor(buffer): deprecate assert_buffer_eq! in favor of assert_eq! (#1007) 2024-05-13 18:13:46 -07:00
widgets_chart.rs refactor(buffer): deprecate assert_buffer_eq! in favor of assert_eq! (#1007) 2024-05-13 18:13:46 -07:00
widgets_gauge.rs refactor(buffer): deprecate assert_buffer_eq! in favor of assert_eq! (#1007) 2024-05-13 18:13:46 -07:00
widgets_list.rs refactor(buffer): deprecate assert_buffer_eq! in favor of assert_eq! (#1007) 2024-05-13 18:13:46 -07:00
widgets_paragraph.rs refactor(buffer): deprecate assert_buffer_eq! in favor of assert_eq! (#1007) 2024-05-13 18:13:46 -07:00
widgets_table.rs refactor(buffer): deprecate assert_buffer_eq! in favor of assert_eq! (#1007) 2024-05-13 18:13:46 -07:00
widgets_tabs.rs refactor(buffer): deprecate assert_buffer_eq! in favor of assert_eq! (#1007) 2024-05-13 18:13:46 -07:00