(node: &Value)
| 180 | } |
| 181 | |
| 182 | fn is_actionable_element(node: &Value) -> bool { |
| 183 | let haystack = format!( |
| 184 | "{} {}", |
| 185 | string_field(node, "type").unwrap_or_default(), |
| 186 | string_field(node, "role").unwrap_or_default() |
| 187 | ) |
| 188 | .to_lowercase(); |
| 189 | ["button", "textfield", "switch", "link", "cell"] |
| 190 | .iter() |
| 191 | .any(|needle| haystack.contains(needle)) |
| 192 | } |
no outgoing calls
no test coverage detected