Skip to main content

is_test_command

Function is_test_command 

Source
pub fn is_test_command(command: &str) -> bool
Expand description

Whether command (a bash tool call’s shell command) IS a matching test invocation (the gate’s VERIFY half).

Why: Reused by both default_finish_gate’s own-transcript scan and run_task::recorder’s per-turn ran_test_command signal, so the two gate sites can never independently drift on what counts as “the named tests actually ran”. What: Same predicate as names_test_command, applied to a single command string rather than free-form prose. Test: tests::is_test_command_matches_each_pattern, tests::is_test_command_false_on_unrelated_command.