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

Function test_init_creates_repository

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

Source from the content-addressed store, hash-verified

1016
1017 #[test]
1018 fn test_init_creates_repository() {
1019 let temp = TempDir::new().unwrap();
1020 let init = Init::at_path(temp.path());
1021
1022 let result = init.run();
1023 if let Err(ref e) = result {
1024 eprintln!("Init failed: {:?}", e);
1025 }
1026 assert!(result.is_ok(), "Init should succeed: {:?}", result.err());
1027
1028 // Verify .atomic directory was created
1029 assert!(temp.path().join(".atomic").is_dir());
1030 }
1031
1032 #[test]
1033 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