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

Function test_init_with_existing_agents_dir

src/init.rs:2354–2366  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2352
2353 #[test]
2354 fn test_init_with_existing_agents_dir() {
2355 let temp_dir = TempDir::new().unwrap();
2356 let agents_dir = temp_dir.path().join(".agents");
2357 fs::create_dir_all(&agents_dir).unwrap();
2358
2359 // Init should work even if .agents exists
2360 let result = init(temp_dir.path(), false);
2361 assert!(result.is_ok());
2362
2363 // Should still create files
2364 assert!(agents_dir.join("agentsync.toml").exists());
2365 assert!(agents_dir.join("AGENTS.md").exists());
2366 }
2367
2368 #[test]
2369 fn test_init_creates_nested_structure() {

Callers

nothing calls this directly

Calls 1

initFunction · 0.85

Tested by

no test coverage detected