MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / test_spinner

Function test_spinner

crates/chat-cli/src/util/spinner.rs:118–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116
117 #[test]
118 fn test_spinner() {
119 let mut spinner = Spinner::new(vec![
120 SpinnerComponent::Spinner,
121 SpinnerComponent::Text("Loading".into()),
122 ]);
123 thread::sleep(Duration::from_secs(1));
124 spinner.stop_with_message("Done".into());
125 }
126}

Callers

nothing calls this directly

Calls 1

stop_with_messageMethod · 0.80

Tested by

no test coverage detected