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

Function test_normalize_relative_path

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

Source from the content-addressed store, hash-verified

527
528 #[test]
529 fn test_normalize_relative_path() {
530 let cmd = Move::new("old.rs", "new.rs");
531 let temp = tempfile::tempdir().unwrap();
532 let result = cmd.normalize_path(temp.path(), "src/file.rs").unwrap();
533 assert_eq!(result, "src/file.rs");
534 }
535
536 #[test]
537 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