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

Function test_run_empty_url

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

Source from the content-addressed store, hash-verified

1523 /// Test run with empty URL returns error.
1524 #[test]
1525 fn test_run_empty_url() {
1526 let clone = Clone::new(String::new());
1527 let result = clone.run();
1528
1529 assert!(result.is_err());
1530 match result.unwrap_err() {
1531 CliError::InvalidArgument { message } => {
1532 assert!(message.contains("URL"));
1533 }
1534 _ => panic!("Expected InvalidArgument error"),
1535 }
1536 }
1537
1538 // Manifest Error Mapping Tests
1539

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected