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

Function test_draw_delete_mode

src/interactive/view.rs:230–239  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

228
229 #[test]
230 fn test_draw_delete_mode() -> io::Result<()> {
231 let backend = TestBackend::new(80, 30);
232 let mut state = AppState::new(vec![("VAR1".to_string(), "VALUE1".to_string())]);
233 let mut terminal = Terminal::new(backend).unwrap();
234 state.mode = Mode::Delete("VAR1".to_string());
235 terminal.draw(|f| {
236 super::render(&state, f);
237 })?;
238 Ok(())
239 }
240
241 #[test]
242 fn test_draw_message() -> io::Result<()> {

Callers

nothing calls this directly

Calls 1

renderFunction · 0.85

Tested by

no test coverage detected