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

Source from the content-addressed store, hash-verified

434
435 #[test]
436 fn test_run_without_name() {
437 let cmd = Delete::default();
438 let result = cmd.run();
439 assert!(result.is_err());
440 match result.unwrap_err() {
441 CliError::InvalidArgument { message } => {
442 assert!(message.contains("required"));
443 }
444 other => panic!("Expected InvalidArgument, got: {:?}", other),
445 }
446 }
447
448 // -------------------------------------------------------------------------
449 // Integration Tests (require temp repository)

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected