MCPcopy Create free account
hub / github.com/dtormoen/tsk-tsk / test_detect_rust_tech_stack

Function test_detect_rust_tech_stack

src/repository.rs:147–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145
146 #[tokio::test]
147 async fn test_detect_rust_tech_stack() {
148 let temp_dir = TempDir::new().unwrap();
149
150 // Create Cargo.toml file
151 tokio::fs::write(temp_dir.path().join("Cargo.toml"), "")
152 .await
153 .unwrap();
154
155 let result = detect_stack(temp_dir.path()).await.unwrap();
156 assert_eq!(result, "rust");
157 }
158
159 #[tokio::test]
160 async fn test_detect_python_tech_stack() {

Callers

nothing calls this directly

Calls 2

detect_stackFunction · 0.85
pathMethod · 0.80

Tested by

no test coverage detected