MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_run_without_name

Function test_run_without_name

atomic-cli/src/commands/view/delete.rs:228–238  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

226
227 #[test]
228 fn test_run_without_name() {
229 let cmd = Delete::default();
230 let result = cmd.run();
231 assert!(result.is_err());
232 match result.unwrap_err() {
233 CliError::InvalidArgument { message } => {
234 assert!(message.contains("required"));
235 }
236 other => panic!("Expected InvalidArgument, got: {:?}", other),
237 }
238 }
239
240 // -------------------------------------------------------------------------
241 // Integration Tests (require temp repository)

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected