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

Function test_init_creates_config_file

src/init.rs:2272–2285  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2270
2271 #[test]
2272 fn test_init_creates_config_file() {
2273 let temp_dir = TempDir::new().unwrap();
2274
2275 init(temp_dir.path(), false).unwrap();
2276
2277 let config_path = temp_dir.path().join(".agents").join("agentsync.toml");
2278 assert!(config_path.exists());
2279
2280 let content = fs::read_to_string(&config_path).unwrap();
2281 assert!(content.contains("[agents.claude]"));
2282 assert!(content.contains("[agents.copilot]"));
2283 assert!(content.contains("[agents.cursor]"));
2284 assert!(content.contains("[agents.codex]"));
2285 }
2286
2287 #[test]
2288 fn test_init_creates_agents_md() {

Callers

nothing calls this directly

Calls 1

initFunction · 0.85

Tested by

no test coverage detected