MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_suspend

Function test_suspend

atomic-cli/src/output/progress.rs:557–567  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

555
556 #[test]
557 fn test_suspend() {
558 let mp = create_multi_progress();
559 let _ = add_spinner(&mp, "Working...");
560
561 let result = suspend(&mp, || {
562 // Simulate some work that needs progress suspended
563 42
564 });
565
566 assert_eq!(result, 42);
567 }
568
569 // -------------------------------------------------------------------------
570 // Is Finished Tests

Callers

nothing calls this directly

Calls 3

create_multi_progressFunction · 0.85
add_spinnerFunction · 0.85
suspendFunction · 0.85

Tested by

no test coverage detected