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

Source from the content-addressed store, hash-verified

961 /// Test run with empty URL returns error.
962 #[test]
963 fn test_run_empty_url() {
964 let clone = Clone::new(String::new());
965 let result = clone.run();
966
967 assert!(result.is_err());
968 match result.unwrap_err() {
969 CliError::InvalidArgument { message } => {
970 assert!(message.contains("URL"));
971 }
972 _ => panic!("Expected InvalidArgument error"),
973 }
974 }
975}

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected