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

Function test_suspend

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

Source from the content-addressed store, hash-verified

534
535 #[test]
536 fn test_suspend() {
537 let mp = create_multi_progress();
538 let _ = add_spinner(&mp, "Working...");
539
540 let result = suspend(&mp, || {
541 // Simulate some work that needs progress suspended
542 42
543 });
544
545 assert_eq!(result, 42);
546 }
547
548 // -------------------------------------------------------------------------
549 // 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