()
| 166 | } |
| 167 | |
| 168 | fn detect_from_cwd() -> Option<String> { |
| 169 | let cwd = std::env::current_dir().ok()?; |
| 170 | let candidates = [ |
| 171 | cwd.join("src/mobile-web/dist"), |
| 172 | cwd.join("../../mobile-web/dist"), |
| 173 | cwd.join("../mobile-web/dist"), |
| 174 | ]; |
| 175 | |
| 176 | check_candidates(&candidates, "cwd-relative") |
| 177 | } |
| 178 | |
| 179 | fn check_candidates(candidates: &[PathBuf], source: &str) -> Option<String> { |
| 180 | for candidate in candidates { |
no test coverage detected