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

Function test_detect_project_name

src/repository.rs:273–281  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

271
272 #[tokio::test]
273 async fn test_detect_project_name() {
274 // Create a temp dir with a specific name to test
275 let temp_base = TempDir::new().unwrap();
276 let project_dir = temp_base.path().join("my-awesome-project");
277 tokio::fs::create_dir(&project_dir).await.unwrap();
278
279 let result = detect_project_name(&project_dir).await.unwrap();
280 assert_eq!(result, "my-awesome-project");
281 }
282
283 #[tokio::test]
284 async fn test_clean_project_name() {

Callers

nothing calls this directly

Calls 3

create_dirFunction · 0.85
detect_project_nameFunction · 0.85
pathMethod · 0.80

Tested by

no test coverage detected