MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_init_creates_repository

Function test_init_creates_repository

atomic-cli/src/commands/init.rs:896–908  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

894
895 #[test]
896 fn test_init_creates_repository() {
897 let temp = TempDir::new().unwrap();
898 let init = Init::at_path(temp.path());
899
900 let result = init.run();
901 if let Err(ref e) = result {
902 eprintln!("Init failed: {:?}", e);
903 }
904 assert!(result.is_ok(), "Init should succeed: {:?}", result.err());
905
906 // Verify .atomic directory was created
907 assert!(temp.path().join(".atomic").is_dir());
908 }
909
910 #[test]
911 fn test_init_creates_directory_if_missing() {

Callers

nothing calls this directly

Calls 3

unwrapMethod · 0.45
pathMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected