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

Source from the content-addressed store, hash-verified

796 /// Test chaining multiple builder methods.
797 #[test]
798 fn test_clone_builder_chain() {
799 let clone = Clone::new("https://example.com/repo".to_string())
800 .with_path("my-project")
801 .with_view("dev")
802 .with_insecure(true)
803 .with_timeout(120)
804 .with_download_only(true)
805 .with_into_existing(true);
806
807 assert_eq!(clone.url, "https://example.com/repo");
808 assert_eq!(clone.path, Some("my-project".to_string()));
809 assert_eq!(clone.view, "dev");
810 assert!(clone.insecure);
811 assert_eq!(clone.timeout, 120);
812 assert!(clone.download_only);
813 assert!(clone.into_existing);
814 }
815
816 /// Test Clone can be cloned (the trait, not the command).
817 #[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