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:514–529  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

512
513 #[test]
514 fn test_multiple_bars_in_multi() {
515 let mp = create_multi_progress();
516 let bar1 = add_progress_bar(&mp, 100, "Task 1");
517 let bar2 = add_progress_bar(&mp, 50, "Task 2");
518 let spinner = add_spinner(&mp, "Task 3");
519
520 bar1.inc(10);
521 bar2.inc(5);
522
523 assert_eq!(bar1.position(), 10);
524 assert_eq!(bar2.position(), 5);
525
526 bar1.finish();
527 bar2.finish();
528 spinner.finish();
529 }
530
531 // -------------------------------------------------------------------------
532 // 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