use msvc_kit::constants::{download, extraction, hash, progress};
#[test]
fn test_hash_buffer_size_optimized() {
assert_eq!(hash::HASH_BUFFER_SIZE, 4 * 1024 * 1024);
}
#[test]
fn test_extract_buffer_size_optimized() {
assert_eq!(extraction::EXTRACT_BUFFER_SIZE, 256 * 1024);
}
#[test]
fn test_default_parallel_extractions() {
assert_eq!(extraction::DEFAULT_PARALLEL_EXTRACTIONS, 4);
}
#[test]
fn test_download_constants() {
const _: () = {
assert!(download::MAX_RETRIES >= 1);
assert!(download::DEFAULT_PARALLEL_DOWNLOADS >= 1);
assert!(download::MIN_CONCURRENCY >= 1);
};
const _THROUGHPUT_CHECK: () = {
assert!(download::LOW_THROUGHPUT_MBPS as u64 > 0);
assert!(download::HIGH_THROUGHPUT_MBPS as u64 > download::LOW_THROUGHPUT_MBPS as u64);
};
}
#[test]
fn test_progress_constants() {
const _: () = {
assert!(progress::SPINNER_TICK_MS > 0);
assert!(progress::PROGRESS_TICK_MS > 0);
};
let _ = progress::UPDATE_INTERVAL.as_millis();
}