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

Function test_init_creates_agents_md

src/init.rs:2288–2299  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2286
2287 #[test]
2288 fn test_init_creates_agents_md() {
2289 let temp_dir = TempDir::new().unwrap();
2290
2291 init(temp_dir.path(), false).unwrap();
2292
2293 let agents_md_path = temp_dir.path().join(".agents").join("AGENTS.md");
2294 assert!(agents_md_path.exists());
2295
2296 let content = fs::read_to_string(&agents_md_path).unwrap();
2297 assert!(content.contains("# AI Agent Instructions"));
2298 assert!(content.contains("## Project Overview"));
2299 }
2300
2301 #[test]
2302 fn test_init_does_not_overwrite_without_force() {

Callers

nothing calls this directly

Calls 1

initFunction · 0.85

Tested by

no test coverage detected