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

Function test_restore_clone

atomic-cli/src/commands/restore.rs:587–595  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

585
586 #[test]
587 fn test_restore_clone() {
588 let cmd = Restore::new()
589 .with_files(vec!["file.txt".to_string()])
590 .with_force(true);
591 let cloned = cmd.clone();
592
593 assert_eq!(cloned.files, cmd.files);
594 assert_eq!(cloned.force, cmd.force);
595 }
596
597 // Guard Logic Tests (requires_force)
598

Callers

nothing calls this directly

Calls 3

with_forceMethod · 0.45
with_filesMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected