Skip to main content

is_test_bash_call

Function is_test_bash_call 

Source
pub fn is_test_bash_call(call: &ToolCall) -> bool
Expand description

Whether call is a bash invocation of a test command — the cheap pre-filter dispatch_all applies before the fuller is_redundant_test_rerun transcript scan.

Why: Only a bash test call can ever be a redundant re-run, so the dispatch loop should not pay for the transcript scan on every other tool call. What: true iff call names BASH_TOOL_NAME and its extracted command is_test_command. Test: redundant_run::tests::is_test_bash_call_true_only_for_test_bash.