MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / scan_directories_skips_vendor

Function scan_directories_skips_vendor

src/classmap_scanner.rs:2136–2145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2134
2135 #[test]
2136 fn scan_directories_skips_vendor() {
2137 let dir = tempfile::tempdir().unwrap();
2138 let vendor = dir.path().join("vendor");
2139 std::fs::create_dir_all(&vendor).unwrap();
2140 std::fs::write(vendor.join("Lib.php"), "<?php\nclass Lib {}").unwrap();
2141
2142 let vendor_dir_paths = vec![vendor];
2143 let classmap = scan_directories(&[dir.path().to_path_buf()], &vendor_dir_paths);
2144 assert!(!classmap.contains_key("Lib"));
2145 }
2146
2147 #[test]
2148 fn psr4_filtering() {

Callers

nothing calls this directly

Calls 2

scan_directoriesFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected