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

Function test_normalize_relative_path

atomic-cli/src/commands/mv.rs:387–392  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

385
386 #[test]
387 fn test_normalize_relative_path() {
388 let cmd = Move::new("old.rs", "new.rs");
389 let temp = tempfile::tempdir().unwrap();
390 let result = cmd.normalize_path(temp.path(), "src/file.rs").unwrap();
391 assert_eq!(result, "src/file.rs");
392 }
393
394 #[test]
395 fn test_normalize_absolute_path_inside_repo() {

Callers

nothing calls this directly

Calls 3

normalize_pathMethod · 0.80
unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected