()
| 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 | } |