use prctrl::logger::calculate_priority_score_for_stats;
#[test]
fn test_priority_score_small_new_pr() {
let score = calculate_priority_score_for_stats(30, 0);
assert_eq!(score, 1);
}
#[test]
fn test_priority_score_zero_days() {
let score = calculate_priority_score_for_stats(30, 0);
assert_eq!(score, 1);
}
#[test]
fn test_priority_score_medium_age_medium_size() {
let score = calculate_priority_score_for_stats(100, 7);
assert_eq!(score, 1);
}
#[test]
fn test_priority_score_large_old_pr() {
let score = calculate_priority_score_for_stats(600, 45);
assert!((2..=4).contains(&score));
}
#[test]
fn test_priority_score_old_medium() {
let score = calculate_priority_score_for_stats(300, 30);
assert!((1..=3).contains(&score));
}
#[test]
fn test_priority_score_boundary_50_lines() {
let score = calculate_priority_score_for_stats(50, 5);
assert!((1..=3).contains(&score));
}