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

Function test_resolve_path_dot

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

Source from the content-addressed store, hash-verified

1056 #[test]
1057 #[serial]
1058 fn test_resolve_path_dot() {
1059 let temp = TempDir::new().unwrap();
1060 let original_dir = std::env::current_dir().unwrap();
1061 std::env::set_current_dir(temp.path()).unwrap();
1062
1063 let init = Init::new(); // Uses "." by default
1064 let resolved = init.resolve_path();
1065
1066 std::env::set_current_dir(original_dir).unwrap();
1067
1068 assert!(resolved.is_ok());
1069 }
1070
1071 // -------------------------------------------------------------------------
1072 // 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