Skip to main content

Module progress

Module progress 

Source
Expand description

Progress display for mutation testing.

Re-exportsยง

use std::collections::HashMap; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use std::sync::atomic::AtomicBool; ๐Ÿ”’
use std::sync::atomic::AtomicUsize; ๐Ÿ”’
use std::sync::atomic::Ordering; ๐Ÿ”’
use std::time::Duration; ๐Ÿ”’
use std::time::Instant; ๐Ÿ”’
use indicatif::MultiProgress; ๐Ÿ”’
use indicatif::ProgressBar; ๐Ÿ”’
use indicatif::ProgressStyle; ๐Ÿ”’
use parking_lot::Mutex; ๐Ÿ”’
use yansi::Paint; ๐Ÿ”’
use crate::mutation::mutant::Mutant; ๐Ÿ”’
use crate::mutation::mutant::MutationResult; ๐Ÿ”’

Structsยง

ActiveMutant ๐Ÿ”’
State stored per active mutant so we can show per-mutant elapsed time and remove the correct row when a mutant completes (rather than FIFO which breaks under parallel completion).
LiveCounts ๐Ÿ”’
Live tally of mutant outcomes, rendered into the overall progress bar.
MutationProgress
Thread-safe wrapper for mutation progress
MutationProgressState
State for mutation testing progress display.

Functionsยง

truncate_str ๐Ÿ”’
Truncate a string to max length, centering around the middle (where the operator typically is)