(
group: &Value,
command: &str,
status_message: Option<&str>,
timeout_sec: Option<u64>,
)
| 523 | } |
| 524 | |
| 525 | fn group_has_hook_spec( |
| 526 | group: &Value, |
| 527 | command: &str, |
| 528 | status_message: Option<&str>, |
| 529 | timeout_sec: Option<u64>, |
| 530 | ) -> bool { |
| 531 | group |
| 532 | .get("hooks") |
| 533 | .and_then(Value::as_array) |
| 534 | .is_some_and(|hooks| { |
| 535 | hooks |
| 536 | .iter() |
| 537 | .any(|hook| hook_matches_spec(hook, command, status_message, timeout_sec)) |
| 538 | }) |
| 539 | } |
| 540 | |
| 541 | fn hook_matches_spec( |
| 542 | hook: &Value, |
no test coverage detected