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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected