MCPcopy Create free account
hub / github.com/dallay/agentsync / test_detect_pipfile_deps

Function test_detect_pipfile_deps

tests/unit/detect_coverage.rs:49–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47
48#[test]
49fn 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]
58django = "*"
59requests = ">=2.28.0"
60
61[dev-packages]
62pytest = "*"
63black = "*"
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]
77fn test_detect_requirements_txt_with_nested_includes() {

Callers

nothing calls this directly

Calls 2

catalog_detectorFunction · 0.70
detectMethod · 0.45

Tested by

no test coverage detected