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

Function test_progress_bar_increment

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

Source from the content-addressed store, hash-verified

426
427 #[test]
428 fn test_progress_bar_increment() {
429 let bar = create_progress_bar(100, "Working...");
430 bar.inc(1);
431 assert_eq!(bar.position(), 1);
432 bar.inc(5);
433 assert_eq!(bar.position(), 6);
434 bar.finish();
435 }
436
437 #[test]
438 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