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

Source from the content-addressed store, hash-verified

1162 /// Test run with empty URL returns error.
1163 #[test]
1164 fn test_run_empty_url() {
1165 let clone = Clone::new(String::new());
1166 let result = clone.run();
1167
1168 assert!(result.is_err());
1169 match result.unwrap_err() {
1170 CliError::InvalidArgument { message } => {
1171 assert!(message.contains("URL"));
1172 }
1173 _ => panic!("Expected InvalidArgument error"),
1174 }
1175 }
1176}

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected