Skip to main content

names_test_command

Function names_test_command 

Source
pub fn names_test_command(text: &str) -> bool
Expand description

Whether text textually names a runnable test command (the gate’s TRIGGER half).

Why: The gate must stay inert when nothing in the task/project context ever asked for a specific test command. What: true iff [test_command_pattern] finds a match anywhere in text. Test: tests::names_test_command_detects_each_pattern, tests::names_test_command_false_on_unrelated_text.