MCPcopy Create free account
hub / github.com/ankddev/envfetch / test_draw_message

Function test_draw_message

src/interactive/view.rs:242–251  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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<()> {

Callers

nothing calls this directly

Calls 2

renderFunction · 0.85
show_messageMethod · 0.80

Tested by

no test coverage detected