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

Function test_move_clone

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

Source from the content-addressed store, hash-verified

512
513 #[test]
514 fn test_move_clone() {
515 let cmd = Move::new("old.rs", "new.rs")
516 .with_dry_run(true)
517 .with_force(true);
518 let cloned = cmd.clone();
519
520 assert_eq!(cloned.source, cmd.source);
521 assert_eq!(cloned.destination, cmd.destination);
522 assert_eq!(cloned.dry_run, cmd.dry_run);
523 assert_eq!(cloned.force, cmd.force);
524 }
525
526 // Normalize Path Tests
527

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