()
| 240 | |
| 241 | #[test] |
| 242 | fn test_draw_message() -> io::Result<()> { |
| 243 | let backend = TestBackend::new(80, 30); |
| 244 | let mut state = AppState::new(vec![]); |
| 245 | let mut terminal = Terminal::new(backend).unwrap(); |
| 246 | state.show_message("Test message", Duration::from_secs(2)); |
| 247 | terminal.draw(|f| { |
| 248 | super::render(&state, f); |
| 249 | })?; |
| 250 | Ok(()) |
| 251 | } |
| 252 | |
| 253 | #[test] |
| 254 | fn test_draw_scrolling() -> io::Result<()> { |
nothing calls this directly
no test coverage detected