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

Function test_resolve_path_dot

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

Source from the content-addressed store, hash-verified

1172 #[test]
1173 #[file_serial]
1174 fn test_resolve_path_dot() {
1175 let temp = TempDir::new().unwrap();
1176 let original_dir = std::env::current_dir().unwrap();
1177 std::env::set_current_dir(temp.path()).unwrap();
1178
1179 let init = Init::new(); // Uses "." by default
1180 let resolved = init.resolve_path();
1181
1182 std::env::set_current_dir(original_dir).unwrap();
1183
1184 assert!(resolved.is_ok());
1185 }
1186
1187 // -------------------------------------------------------------------------
1188 // Edge Case Tests

Callers

nothing calls this directly

Calls 3

unwrapMethod · 0.45
pathMethod · 0.45
resolve_pathMethod · 0.45

Tested by

no test coverage detected