mecha10-cli 0.1.47

Mecha10 CLI tool
Documentation
// Tests for mecha10_cli::handlers::setup

use mecha10_cli::handlers::setup::*;

#[test]
fn test_setup_args() {
    let args = SetupArgs {
        check_only: true,
        install_deps: false,
    };

    assert!(args.check_only);
    assert!(!args.install_deps);
}

#[test]
fn test_setup_args_install() {
    let args = SetupArgs {
        check_only: false,
        install_deps: true,
    };

    assert!(!args.check_only);
    assert!(args.install_deps);
}

#[test]
fn test_check_rust() {
    // Should succeed if Rust is installed (which it must be to run this test)
    let result = check_rust();
    assert!(result.is_ok());
}

#[test]
fn test_check_cargo() {
    // Should succeed if Cargo is installed (which it must be to run this test)
    let result = check_cargo();
    assert!(result.is_ok());
}