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

Function test_normalize_relative_path

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

Source from the content-addressed store, hash-verified

379
380 #[test]
381 fn test_normalize_relative_path() {
382 let cmd = Move::new("old.rs", "new.rs");
383 let temp = tempfile::tempdir().unwrap();
384 let result = cmd.normalize_path(temp.path(), "src/file.rs").unwrap();
385 assert_eq!(result, "src/file.rs");
386 }
387
388 #[test]
389 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