()
| 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 | } |
nothing calls this directly
no test coverage detected