()
| 47 | |
| 48 | #[test] |
| 49 | fn test_detect_pipfile_deps() { |
| 50 | let temp = TempDir::new().unwrap(); |
| 51 | let project_root = temp.path(); |
| 52 | |
| 53 | // Create a Pipfile (line 797-809 coverage) |
| 54 | fs::write( |
| 55 | project_root.join("Pipfile"), |
| 56 | r#" |
| 57 | [packages] |
| 58 | django = "*" |
| 59 | requests = ">=2.28.0" |
| 60 | |
| 61 | [dev-packages] |
| 62 | pytest = "*" |
| 63 | black = "*" |
| 64 | "#, |
| 65 | ) |
| 66 | .unwrap(); |
| 67 | |
| 68 | let detector = catalog_detector(); |
| 69 | let mut cache = ContentCache::new(); |
| 70 | let detections = detector.detect(project_root, &mut cache).unwrap(); |
| 71 | |
| 72 | // Should detect Python from Pipfile |
| 73 | assert!(!detections.is_empty(), "Should detect Python from Pipfile"); |
| 74 | } |
| 75 | |
| 76 | #[test] |
| 77 | fn test_detect_requirements_txt_with_nested_includes() { |
nothing calls this directly
no test coverage detected