(entry: &Value)
| 626 | } |
| 627 | |
| 628 | fn is_react_native_metro_target(entry: &Value) -> bool { |
| 629 | entry.get("reactNative").is_some() |
| 630 | || string_value(entry, "devtoolsFrontendUrl") |
| 631 | .is_some_and(|url| url.contains("/debugger-frontend/")) |
| 632 | || string_value(entry, "webSocketDebuggerUrl") |
| 633 | .is_some_and(|url| url.contains("/inspector/debug")) |
| 634 | || string_value(entry, "description") |
| 635 | .is_some_and(|description| description.to_ascii_lowercase().contains("react native")) |
| 636 | } |
| 637 | |
| 638 | fn is_preferred_react_native_metro_target(entry: &Value) -> bool { |
| 639 | entry |
no test coverage detected