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

Function test_progress_bar_increment

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

Source from the content-addressed store, hash-verified

447
448 #[test]
449 fn test_progress_bar_increment() {
450 let bar = create_progress_bar(100, "Working...");
451 bar.inc(1);
452 assert_eq!(bar.position(), 1);
453 bar.inc(5);
454 assert_eq!(bar.position(), 6);
455 bar.finish();
456 }
457
458 #[test]
459 fn test_progress_bar_set_position() {

Callers

nothing calls this directly

Calls 2

create_progress_barFunction · 0.85
finishMethod · 0.45

Tested by

no test coverage detected