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

Function test_clone_clone

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

Source from the content-addressed store, hash-verified

816 /// Test Clone can be cloned (the trait, not the command).
817 #[test]
818 fn test_clone_clone() {
819 let original = Clone::new("https://example.com/repo".to_string())
820 .with_path("test")
821 .with_insecure(true);
822
823 let cloned = original.clone();
824
825 assert_eq!(cloned.url, "https://example.com/repo");
826 assert_eq!(cloned.path, Some("test".to_string()));
827 assert!(cloned.insecure);
828 }
829
830 /// Test Clone has Debug implementation.
831 #[test]

Callers

nothing calls this directly

Calls 3

with_insecureMethod · 0.45
with_pathMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected