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

Function test_run_without_name

atomic-cli/src/commands/view/new.rs:634–644  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

632
633 #[test]
634 fn test_run_without_name() {
635 let cmd = New::default();
636 let result = cmd.run();
637 assert!(result.is_err());
638 match result.unwrap_err() {
639 CliError::InvalidArgument { message } => {
640 assert!(message.contains("required"));
641 }
642 other => panic!("Expected InvalidArgument, got: {:?}", other),
643 }
644 }
645
646 #[test]
647 fn test_run_with_invalid_name() {

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected