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

Function test_progress_beyond_total

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

Source from the content-addressed store, hash-verified

605
606 #[test]
607 fn test_progress_beyond_total() {
608 let bar = create_progress_bar(10, "Testing");
609 for _ in 0..20 {
610 bar.inc(1);
611 }
612 // Should handle overflow gracefully
613 assert_eq!(bar.position(), 20);
614 bar.finish();
615 }
616}

Callers

nothing calls this directly

Calls 2

create_progress_barFunction · 0.85
finishMethod · 0.45

Tested by

no test coverage detected