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

Function test_multiple_bars_in_multi

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

Source from the content-addressed store, hash-verified

533
534 #[test]
535 fn test_multiple_bars_in_multi() {
536 let mp = create_multi_progress();
537 let bar1 = add_progress_bar(&mp, 100, "Task 1");
538 let bar2 = add_progress_bar(&mp, 50, "Task 2");
539 let spinner = add_spinner(&mp, "Task 3");
540
541 bar1.inc(10);
542 bar2.inc(5);
543
544 assert_eq!(bar1.position(), 10);
545 assert_eq!(bar2.position(), 5);
546
547 bar1.finish();
548 bar2.finish();
549 spinner.finish();
550 }
551
552 // -------------------------------------------------------------------------
553 // Suspend Tests

Callers

nothing calls this directly

Calls 4

create_multi_progressFunction · 0.85
add_progress_barFunction · 0.85
add_spinnerFunction · 0.85
finishMethod · 0.45

Tested by

no test coverage detected