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

Function test_restore_builder_chain

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

Source from the content-addressed store, hash-verified

501
502 #[test]
503 fn test_restore_builder_chain() {
504 let cmd = Restore::new()
505 .with_files(vec!["src/main.rs".to_string()])
506 .with_dry_run(true)
507 .with_force(true);
508
509 assert_eq!(cmd.files, vec!["src/main.rs"]);
510 assert!(cmd.dry_run);
511 assert!(cmd.force);
512 }
513
514 // Partial Restore Tests
515

Callers

nothing calls this directly

Calls 3

with_forceMethod · 0.45
with_dry_runMethod · 0.45
with_filesMethod · 0.45

Tested by

no test coverage detected