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

Function test_progress_beyond_total

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

Source from the content-addressed store, hash-verified

626
627 #[test]
628 fn test_progress_beyond_total() {
629 let bar = create_progress_bar(10, "Testing");
630 for _ in 0..20 {
631 bar.inc(1);
632 }
633 // Should handle overflow gracefully
634 assert_eq!(bar.position(), 20);
635 bar.finish();
636 }
637}

Callers

nothing calls this directly

Calls 2

create_progress_barFunction · 0.85
finishMethod · 0.45

Tested by

no test coverage detected