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

Function test_resolve_path_dot

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

Source from the content-addressed store, hash-verified

1043 #[test]
1044 #[serial]
1045 fn test_resolve_path_dot() {
1046 let temp = TempDir::new().unwrap();
1047 let original_dir = std::env::current_dir().unwrap();
1048 std::env::set_current_dir(temp.path()).unwrap();
1049
1050 let init = Init::new(); // Uses "." by default
1051 let resolved = init.resolve_path();
1052
1053 std::env::set_current_dir(original_dir).unwrap();
1054
1055 assert!(resolved.is_ok());
1056 }
1057
1058 // -------------------------------------------------------------------------
1059 // 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