MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / skips_projects_inside_node_modules

Function skips_projects_inside_node_modules

src/global.rs:743–755  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

741
742 #[test]
743 fn skips_projects_inside_node_modules() {
744 let dir = tempfile::tempdir().unwrap();
745 let cwd = dir.path().canonicalize().unwrap();
746 let buried = cwd.join("node_modules").join("pkg");
747 fs::create_dir_all(&buried).unwrap();
748 make_project(&buried);
749
750 let out = gather_local_projects_from(&cwd, &None);
751 assert!(
752 !out.contains(&buried),
753 "projects inside node_modules must be skipped, got {out:?}"
754 );
755 }
756
757 #[test]
758 fn skips_home_data_dir_via_canonical_path() {

Callers

nothing calls this directly

Calls 2

make_projectFunction · 0.70

Tested by

no test coverage detected