slopguard-cli 0.1.42

CLI tool to catch AI-generated code patterns via static analysis
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
mod common;

use common::slopguard;
use predicates::prelude::*;

/// `cargo install` users and CI scripts check the installation with
/// `slopguard --version`, so a missing flag would break that check.
#[test]
fn version_flag_prints_package_version() {
    slopguard()
        .arg("--version")
        .assert()
        .success()
        .stdout(predicate::str::diff(format!(
            "slopguard {}\n",
            env!("CARGO_PKG_VERSION")
        )));
}