rfgrep 0.5.0

Advanced recursive file grep utility with comprehensive file type classification - search, list, and analyze 153+ file formats with intelligent filtering and safety policies
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use assert_cmd::Command;
use predicates::prelude::*;

#[allow(deprecated)]
#[test]
fn worker_timeout_enforced() {
    let mut cmd = Command::cargo_bin("rfgrep").unwrap();
    cmd.env("RFGREP_WORKER_SLEEP", "3");
    cmd.arg("search")
        .arg("pattern")
        .arg("--timeout-per-file")
        .arg("1")
        .arg("--")
        .arg("bench_data/file1.txt");
    cmd.assert()
        .success()
        .stdout(predicate::str::contains("No matches found"));
}