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

Function test_restore_with_files

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

Source from the content-addressed store, hash-verified

673
674 #[test]
675 fn test_restore_with_files() {
676 let cmd = Restore::new().with_files(vec!["file.txt".to_string(), "src/".to_string()]);
677 assert_eq!(cmd.files.len(), 2);
678 assert_eq!(cmd.files[0], "file.txt");
679 assert_eq!(cmd.files[1], "src/");
680 }
681
682 #[test]
683 fn test_restore_with_dry_run() {

Callers

nothing calls this directly

Calls 1

with_filesMethod · 0.45

Tested by

no test coverage detected