(id: &str)
| 1469 | } |
| 1470 | |
| 1471 | fn discover_test_paths(id: &str) -> Vec<String> { |
| 1472 | let mut paths = Vec::new(); |
| 1473 | let mut test_names = vec![id.to_owned()]; |
| 1474 | if id == "vector" { |
| 1475 | test_names.push("pgvector".to_owned()); |
| 1476 | } |
| 1477 | for test_name in test_names { |
| 1478 | for candidate in [ |
| 1479 | Path::new(PGLITE_TESTS) |
| 1480 | .join("contrib") |
| 1481 | .join(format!("{test_name}.test.js")), |
| 1482 | Path::new(PGLITE_TESTS) |
| 1483 | .join("contrib") |
| 1484 | .join(format!("{test_name}.test.ts")), |
| 1485 | Path::new(PGLITE_TESTS).join(format!("{test_name}.test.js")), |
| 1486 | Path::new(PGLITE_TESTS).join(format!("{test_name}.test.ts")), |
| 1487 | Path::new(PGLITE_POSTGIS_TESTS).join(format!("{test_name}.test.ts")), |
| 1488 | Path::new(PGLITE_POSTGIS_TESTS).join(format!("{test_name}.test.js")), |
| 1489 | ] { |
| 1490 | if candidate.is_file() { |
| 1491 | paths.push(normalize_path(&candidate)); |
| 1492 | } |
| 1493 | } |
| 1494 | } |
| 1495 | paths.sort(); |
| 1496 | paths.dedup(); |
| 1497 | paths |
| 1498 | } |
| 1499 | |
| 1500 | fn known_load_order(id: &str) -> Vec<String> { |
| 1501 | match id { |
no test coverage detected