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

Source from the content-addressed store, hash-verified

943 /// Test run with empty URL returns error.
944 #[test]
945 fn test_run_empty_url() {
946 let clone = Clone::new(String::new());
947 let result = clone.run();
948
949 assert!(result.is_err());
950 match result.unwrap_err() {
951 CliError::InvalidArgument { message } => {
952 assert!(message.contains("URL"));
953 }
954 _ => panic!("Expected InvalidArgument error"),
955 }
956 }
957}

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected