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

Source from the content-addressed store, hash-verified

1383 /// Test run with empty URL returns error.
1384 #[test]
1385 fn test_run_empty_url() {
1386 let clone = Clone::new(String::new());
1387 let result = clone.run();
1388
1389 assert!(result.is_err());
1390 match result.unwrap_err() {
1391 CliError::InvalidArgument { message } => {
1392 assert!(message.contains("URL"));
1393 }
1394 _ => panic!("Expected InvalidArgument error"),
1395 }
1396 }
1397
1398 // Manifest Error Mapping Tests
1399

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected