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

Function test_init_path_with_spaces

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

Source from the content-addressed store, hash-verified

1204
1205 #[test]
1206 fn test_init_path_with_spaces() {
1207 let temp = TempDir::new().unwrap();
1208 let path_with_spaces = temp.path().join("my project");
1209 std::fs::create_dir(&path_with_spaces).unwrap();
1210
1211 let init = Init::at_path(&path_with_spaces);
1212 let result = init.run();
1213 if let Err(ref e) = result {
1214 eprintln!("Init path with spaces failed: {:?}", e);
1215 }
1216 assert!(result.is_ok(), "Init should succeed: {:?}", result.err());
1217 }
1218
1219 #[test]
1220 fn test_default_view_name_constant() {

Callers

nothing calls this directly

Calls 3

unwrapMethod · 0.45
pathMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected