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:816–832  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

814 /// Test chaining multiple builder methods.
815 #[test]
816 fn test_clone_builder_chain() {
817 let clone = Clone::new("https://example.com/repo".to_string())
818 .with_path("my-project")
819 .with_view("dev")
820 .with_insecure(true)
821 .with_timeout(120)
822 .with_download_only(true)
823 .with_into_existing(true);
824
825 assert_eq!(clone.url, "https://example.com/repo");
826 assert_eq!(clone.path, Some("my-project".to_string()));
827 assert_eq!(clone.view, "dev");
828 assert!(clone.insecure);
829 assert_eq!(clone.timeout, 120);
830 assert!(clone.download_only);
831 assert!(clone.into_existing);
832 }
833
834 /// Test Clone can be cloned (the trait, not the command).
835 #[test]

Callers

nothing calls this directly

Calls 6

with_into_existingMethod · 0.80
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