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

Function test_app_quit_state

src/interactive/tests.rs:101–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99
100#[test]
101fn test_app_quit_state() {
102 let mut app = InteractiveApp::new();
103 app.state.should_quit = true;
104
105 let backend = TestBackend::new(20, 20);
106 let mut terminal = Terminal::new(backend).unwrap();
107
108 let result = app.run(&mut terminal);
109 assert!(result.is_ok());
110}
111
112#[test]
113fn test_state_initialization() {

Callers

nothing calls this directly

Calls 1

runMethod · 0.80

Tested by

no test coverage detected