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

Function test_restore_builder_chain

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

Source from the content-addressed store, hash-verified

693
694 #[test]
695 fn test_restore_builder_chain() {
696 let cmd = Restore::new()
697 .with_files(vec!["src/main.rs".to_string()])
698 .with_dry_run(true)
699 .with_force(true);
700
701 assert_eq!(cmd.files, vec!["src/main.rs"]);
702 assert!(cmd.dry_run);
703 assert!(cmd.force);
704 }
705
706 // Partial Restore Tests
707

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