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

Function test_clone_builder_chain

atomic-cli/src/commands/clone/command.rs:703–717  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

701 /// Test chaining multiple builder methods.
702 #[test]
703 fn test_clone_builder_chain() {
704 let clone = Clone::new("https://example.com/repo".to_string())
705 .with_path("my-project")
706 .with_view("dev")
707 .with_insecure(true)
708 .with_timeout(120)
709 .with_download_only(true);
710
711 assert_eq!(clone.url, "https://example.com/repo");
712 assert_eq!(clone.path, Some("my-project".to_string()));
713 assert_eq!(clone.view, "dev");
714 assert!(clone.insecure);
715 assert_eq!(clone.timeout, 120);
716 assert!(clone.download_only);
717 }
718
719 /// Test Clone can be cloned (the trait, not the command).
720 #[test]

Callers

nothing calls this directly

Calls 5

with_download_onlyMethod · 0.45
with_timeoutMethod · 0.45
with_insecureMethod · 0.45
with_viewMethod · 0.45
with_pathMethod · 0.45

Tested by

no test coverage detected