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

Source from the content-addressed store, hash-verified

809 /// Test run with empty URL returns error.
810 #[test]
811 fn test_run_empty_url() {
812 let clone = Clone::new(String::new());
813 let result = clone.run();
814
815 assert!(result.is_err());
816 match result.unwrap_err() {
817 CliError::InvalidArgument { message } => {
818 assert!(message.contains("URL"));
819 }
820 _ => panic!("Expected InvalidArgument error"),
821 }
822 }
823}

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected