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

Function test_restore_clone

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

Source from the content-addressed store, hash-verified

777
778 #[test]
779 fn test_restore_clone() {
780 let cmd = Restore::new()
781 .with_files(vec!["file.txt".to_string()])
782 .with_force(true);
783 let cloned = cmd.clone();
784
785 assert_eq!(cloned.files, cmd.files);
786 assert_eq!(cloned.force, cmd.force);
787 }
788
789 // Guard Logic Tests (requires_force)
790

Callers

nothing calls this directly

Calls 3

with_forceMethod · 0.45
with_filesMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected