MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / selector_is_empty

Function selector_is_empty

packages/server/src/api/accessibility_query.rs:152–163  ·  view source on GitHub ↗
(selector: &ElementSelectorPayload)

Source from the content-addressed store, hash-verified

150}
151
152fn selector_is_empty(selector: &ElementSelectorPayload) -> bool {
153 selector.text.is_none()
154 && selector.id.is_none()
155 && selector.label.is_none()
156 && selector.value.is_none()
157 && selector.element_type.is_none()
158 && selector.enabled.is_none()
159 && selector.checked.is_none()
160 && selector.focused.is_none()
161 && selector.selected.is_none()
162 && selector.index.is_none()
163}
164
165fn string_fields_match(node: &Value, expected: &str, use_regex: bool, fields: &[&str]) -> bool {
166 let regex = use_regex.then(|| Regex::new(expected).ok()).flatten();

Callers 2

perform_tap_payloadFunction · 0.85
element_matches_selectorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected