// Tests for mecha10_cli::handlers::status

use mecha10_cli::handlers::status::*;

#[test]
fn test_mask_database_url() {
    let url = "postgresql://user:password@localhost:5432/db";
    let masked = mask_database_url(url);
    assert_eq!(masked, "postgresql://***@localhost:5432/db");
}

#[test]
fn test_mask_database_url_no_password() {
    let url = "postgresql://localhost:5432/db";
    assert_eq!(mask_database_url(url), url);
}
