pub use doctor::DoctorChecks;
pub use license::LicenseType;
pub use types::{DoctorCheck, RepoInfo};
pub mod completions;
pub mod doctor;
pub mod license;
pub mod output;
pub mod types;
pub use completions::generate_completions;
pub use doctor::run_doctor;
pub use license::display_license;
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_repo_info_creation() {
let repo = RepoInfo::new("workhelix", "test");
assert_eq!(repo.owner, "workhelix");
assert_eq!(repo.name, "test");
}
#[test]
fn test_doctor_check_creation() {
let check = DoctorCheck::pass("test");
assert!(check.passed);
let check = DoctorCheck::fail("test", "failed");
assert!(!check.passed);
}
#[test]
fn test_license_type() {
assert_eq!(LicenseType::MIT.name(), "MIT");
assert_eq!(LicenseType::Apache2.name(), "Apache-2.0");
assert_eq!(LicenseType::CC0.name(), "CC0-1.0");
}
}