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

Function test_move_clone

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

Source from the content-addressed store, hash-verified

370
371 #[test]
372 fn test_move_clone() {
373 let cmd = Move::new("old.rs", "new.rs")
374 .with_dry_run(true)
375 .with_force(true);
376 let cloned = cmd.clone();
377
378 assert_eq!(cloned.source, cmd.source);
379 assert_eq!(cloned.destination, cmd.destination);
380 assert_eq!(cloned.dry_run, cmd.dry_run);
381 assert_eq!(cloned.force, cmd.force);
382 }
383
384 // Normalize Path Tests
385

Callers

nothing calls this directly

Calls 3

with_forceMethod · 0.45
with_dry_runMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected