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

Function test_clone_new

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

Source from the content-addressed store, hash-verified

1461 /// Test creating a new Clone with URL.
1462 #[test]
1463 fn test_clone_new() {
1464 let clone = Clone::new("https://example.com/repo".to_string());
1465
1466 assert_eq!(clone.url, "https://example.com/repo");
1467 assert!(clone.path.is_none());
1468 assert_eq!(clone.view, DEFAULT_VIEW);
1469 assert!(!clone.insecure);
1470 assert_eq!(clone.timeout, DEFAULT_TIMEOUT_SECS);
1471 assert!(!clone.download_only);
1472 assert!(!clone.into_existing);
1473 assert!(!clone.all_views);
1474 }
1475
1476 /// Test Default trait implementation.
1477 #[test]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected