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

Function test_init_creates_nested_structure

src/init.rs:2369–2380  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2367
2368 #[test]
2369 fn test_init_creates_nested_structure() {
2370 let temp_dir = TempDir::new().unwrap();
2371 let nested_project = temp_dir.path().join("deep").join("nested").join("project");
2372 fs::create_dir_all(&nested_project).unwrap();
2373
2374 init(&nested_project, false).unwrap();
2375
2376 let agents_dir = nested_project.join(".agents");
2377 assert!(agents_dir.exists());
2378 assert!(agents_dir.join("agentsync.toml").exists());
2379 assert!(agents_dir.join("AGENTS.md").exists());
2380 }
2381
2382 // ==========================================================================
2383 // DEFAULT TEMPLATE TESTS

Callers

nothing calls this directly

Calls 1

initFunction · 0.85

Tested by

no test coverage detected