mecha10-cli 0.1.47

Mecha10 CLI tool
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Tests for mecha10_cli::handlers::package

use mecha10_cli::handlers::package::*;

#[test]
fn test_package_args() {
    let args = PackageArgs {
        target: Some("aarch64-unknown-linux-gnu".to_string()),
        output: Some(PathBuf::from("target/packages")),
        profile: Some("release".to_string()),
        environment: Some("production".to_string()),
    };

    assert_eq!(args.target, Some("aarch64-unknown-linux-gnu".to_string()));
    assert!(args.output.is_some());
    assert_eq!(args.profile, Some("release".to_string()));
    assert_eq!(args.environment, Some("production".to_string()));
}