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

Function test_init_unicode_path

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

Source from the content-addressed store, hash-verified

1074
1075 #[test]
1076 fn test_init_unicode_path() {
1077 let temp = TempDir::new().unwrap();
1078 let unicode_path = temp.path().join("项目");
1079 std::fs::create_dir(&unicode_path).unwrap();
1080
1081 let init = Init::at_path(&unicode_path);
1082 let result = init.run();
1083 if let Err(ref e) = result {
1084 eprintln!("Init unicode path failed: {:?}", e);
1085 }
1086 assert!(result.is_ok(), "Init should succeed: {:?}", result.err());
1087 }
1088
1089 #[test]
1090 fn test_init_path_with_spaces() {

Callers

nothing calls this directly

Calls 3

unwrapMethod · 0.45
pathMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected