(event_json: &str)
| 440 | } |
| 441 | |
| 442 | pub fn cursor_project_root_from_event(event_json: &str) -> Option<PathBuf> { |
| 443 | let parsed: Value = serde_json::from_str(event_json).ok()?; |
| 444 | cursor_project_root_from_parsed_event(&parsed) |
| 445 | } |
| 446 | |
| 447 | fn cursor_project_root_candidate_from_parsed_event(parsed: &Value) -> Option<PathBuf> { |
| 448 | cursor_project_root_from_parsed_event(parsed).or_else(|| { |
no test coverage detected