Returns `true` if any matcher group contains an Atomic hook.
(list: &[Value])
| 1130 | |
| 1131 | /// Returns `true` if any matcher group contains an Atomic hook. |
| 1132 | fn matcher_list_has_atomic(list: &[Value]) -> bool { |
| 1133 | list.iter().any(|group| { |
| 1134 | group |
| 1135 | .get("hooks") |
| 1136 | .and_then(Value::as_array) |
| 1137 | .is_some_and(|hooks| direct_list_has_atomic(hooks)) |
| 1138 | }) |
| 1139 | } |
| 1140 | |
| 1141 | /// Check whether the given event list (direct or matcher-wrapped) already |
| 1142 | /// contains an Atomic hook command. |
no test coverage detected