Returns `true` if any event list in the group contains an Atomic hook.
(group: &Value)
| 1273 | |
| 1274 | /// Returns `true` if any event list in the group contains an Atomic hook. |
| 1275 | fn group_has_atomic_commands(group: &Value) -> bool { |
| 1276 | match group.as_object() { |
| 1277 | Some(obj) => obj |
| 1278 | .values() |
| 1279 | .filter_map(Value::as_array) |
| 1280 | .any(|list| event_list_has_atomic(list)), |
| 1281 | None => false, |
| 1282 | } |
| 1283 | } |
| 1284 | |
| 1285 | // Tests |
| 1286 |
nothing calls this directly
no test coverage detected