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

Function test_restore_with_files

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

Source from the content-addressed store, hash-verified

481
482 #[test]
483 fn test_restore_with_files() {
484 let cmd = Restore::new().with_files(vec!["file.txt".to_string(), "src/".to_string()]);
485 assert_eq!(cmd.files.len(), 2);
486 assert_eq!(cmd.files[0], "file.txt");
487 assert_eq!(cmd.files[1], "src/");
488 }
489
490 #[test]
491 fn test_restore_with_dry_run() {

Callers

nothing calls this directly

Calls 1

with_filesMethod · 0.45

Tested by

no test coverage detected