// Tests for mecha10_cli::handlers::generate

use mecha10_cli::handlers::generate::*;

#[test]
fn test_generate_args() {
    let args = GenerateArgs {
        target: "driver".to_string(),
        name: "my_camera".to_string(),
        template: Some("camera".to_string()),
    };

    assert_eq!(args.target, "driver");
    assert_eq!(args.name, "my_camera");
    assert_eq!(args.template, Some("camera".to_string()));
}

#[test]
fn test_generate_args_no_template() {
    let args = GenerateArgs {
        target: "node".to_string(),
        name: "task_planner".to_string(),
        template: None,
    };

    assert_eq!(args.target, "node");
    assert_eq!(args.name, "task_planner");
    assert!(args.template.is_none());
}
