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

Function test_init_creates_repository

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

Source from the content-addressed store, hash-verified

900
901 #[test]
902 fn test_init_creates_repository() {
903 let temp = TempDir::new().unwrap();
904 let init = Init::at_path(temp.path());
905
906 let result = init.run();
907 if let Err(ref e) = result {
908 eprintln!("Init failed: {:?}", e);
909 }
910 assert!(result.is_ok(), "Init should succeed: {:?}", result.err());
911
912 // Verify .atomic directory was created
913 assert!(temp.path().join(".atomic").is_dir());
914 }
915
916 #[test]
917 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