(value: &str)
| 643 | } |
| 644 | |
| 645 | fn looks_like_path(value: &str) -> bool { |
| 646 | let trimmed = value.trim(); |
| 647 | !trimmed.is_empty() |
| 648 | && !trimmed.contains('\n') |
| 649 | && !trimmed.contains("://") |
| 650 | && (trimmed.contains('/') || trimmed.contains('\\')) |
| 651 | } |
| 652 | |
| 653 | fn is_empty_collection(v: &Value) -> bool { |
| 654 | matches!(v, Value::Array(a) if a.is_empty()) || matches!(v, Value::Object(o) if o.is_empty()) |
no test coverage detected