MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_extract_empty_source

Function test_extract_empty_source

atomic-semantic/src/parsers/mod.rs:606–624  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

604
605 #[test]
606 fn test_extract_empty_source() {
607 let mut registry = ParserRegistry::new();
608 for path in &[
609 "empty.ts",
610 "empty.py",
611 "empty.rs",
612 "empty.go",
613 "Empty.java",
614 "empty.cpp",
615 "empty.c",
616 ] {
617 let entities = registry.extract(path, "");
618 assert!(
619 entities.is_empty(),
620 "{} should produce no entities for empty source",
621 path
622 );
623 }
624 }
625}

Callers

nothing calls this directly

Calls 1

extractMethod · 0.45

Tested by

no test coverage detected