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

Function test_move_clone

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

Source from the content-addressed store, hash-verified

364
365 #[test]
366 fn test_move_clone() {
367 let cmd = Move::new("old.rs", "new.rs")
368 .with_dry_run(true)
369 .with_force(true);
370 let cloned = cmd.clone();
371
372 assert_eq!(cloned.source, cmd.source);
373 assert_eq!(cloned.destination, cmd.destination);
374 assert_eq!(cloned.dry_run, cmd.dry_run);
375 assert_eq!(cloned.force, cmd.force);
376 }
377
378 // Normalize Path Tests
379

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