(node: &Value, selector: &ElementSelector)
| 735 | } |
| 736 | |
| 737 | fn node_contains_matching_element(node: &Value, selector: &ElementSelector) -> bool { |
| 738 | element_matches(node, selector) |
| 739 | || node |
| 740 | .get("children") |
| 741 | .and_then(Value::as_array) |
| 742 | .map(|children| { |
| 743 | children |
| 744 | .iter() |
| 745 | .any(|child| node_contains_matching_element(child, selector)) |
| 746 | }) |
| 747 | .unwrap_or(false) |
| 748 | } |
| 749 | |
| 750 | fn parse_batch_sleep_duration_ms( |
| 751 | args: &StepOptions, |
no test coverage detected