()
| 642 | |
| 643 | #[test] |
| 644 | fn test_comment_only() { |
| 645 | let mut parser = PythonParser::new(); |
| 646 | let source = r#" |
| 647 | # This is a comment |
| 648 | # Another comment |
| 649 | "#; |
| 650 | let entities = parser.extract(source, "comments.py"); |
| 651 | assert!(entities.is_empty()); |
| 652 | } |
| 653 | |
| 654 | #[test] |
| 655 | fn test_line_numbers() { |