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

Function test_init_creates_repository

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

Source from the content-addressed store, hash-verified

887
888 #[test]
889 fn test_init_creates_repository() {
890 let temp = TempDir::new().unwrap();
891 let init = Init::at_path(temp.path());
892
893 let result = init.run();
894 if let Err(ref e) = result {
895 eprintln!("Init failed: {:?}", e);
896 }
897 assert!(result.is_ok(), "Init should succeed: {:?}", result.err());
898
899 // Verify .atomic directory was created
900 assert!(temp.path().join(".atomic").is_dir());
901 }
902
903 #[test]
904 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