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

Function scan_directories_skips_hidden

src/classmap_scanner.rs:2125–2133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2123
2124 #[test]
2125 fn scan_directories_skips_hidden() {
2126 let dir = tempfile::tempdir().unwrap();
2127 let hidden = dir.path().join(".hidden");
2128 std::fs::create_dir_all(&hidden).unwrap();
2129 std::fs::write(hidden.join("Secret.php"), "<?php\nclass Secret {}").unwrap();
2130
2131 let classmap = scan_directories(&[dir.path().to_path_buf()], &[]);
2132 assert!(!classmap.contains_key("Secret"));
2133 }
2134
2135 #[test]
2136 fn scan_directories_skips_vendor() {

Callers

nothing calls this directly

Calls 2

scan_directoriesFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected