use std::time::Duration;
pub const TICK_STRINGS: &[&str] = &[
"\u{280B}", "\u{2819}", "\u{2839}", "\u{2838}", "\u{283C}", "\u{2834}", "\u{2826}", "\u{2827}", "\u{2807}", "\u{280F}", ];
pub const TICK_DONE: &str = " ";
pub const TICK_INTERVAL: Duration = Duration::from_millis(80);
pub const MAX_VISIBLE_TASKS: usize = 24;
pub const OVERALL_TEMPLATE: &str = " {bar:30.cyan/dim} {pos}/{len} {elapsed_precise} {msg}";
pub const PROGRESS_CHARS: &str = "\u{2501}\u{257A}\u{2500}";
pub const TASK_RUNNING_TEMPLATE: &str = " {spinner:.cyan} {msg}";
pub const TASK_STATIC_TEMPLATE: &str = " {msg}";
pub const SEPARATOR_TEMPLATE: &str = " {msg}";
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn tick_strings_are_10_frames() {
assert_eq!(TICK_STRINGS.len(), 10);
}
#[test]
fn tick_interval_is_reasonable() {
assert!(TICK_INTERVAL.as_millis() >= 50);
assert!(TICK_INTERVAL.as_millis() <= 200);
}
#[test]
fn progress_chars_are_3_chars() {
assert_eq!(PROGRESS_CHARS.chars().count(), 3);
}
#[test]
fn max_visible_tasks_positive() {
assert_ne!(MAX_VISIBLE_TASKS, 0);
}
}