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

Function test_move_builder_chain

atomic-cli/src/commands/mv.rs:419–428  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

417
418 #[test]
419 fn test_move_builder_chain() {
420 let cmd = Move::new("src/old.rs", "src/new.rs")
421 .with_dry_run(true)
422 .with_force(true);
423
424 assert_eq!(cmd.source, "src/old.rs");
425 assert_eq!(cmd.destination, "src/new.rs");
426 assert!(cmd.dry_run);
427 assert!(cmd.force);
428 }
429
430 // Path Resolution Tests
431

Callers

nothing calls this directly

Calls 2

with_forceMethod · 0.45
with_dry_runMethod · 0.45

Tested by

no test coverage detected