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

Function test_run_without_name

atomic-cli/src/commands/view/switch.rs:424–434  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

422
423 #[test]
424 fn test_run_without_name() {
425 let cmd = Switch::default();
426 let result = cmd.run();
427 assert!(result.is_err());
428 match result.unwrap_err() {
429 CliError::InvalidArgument { message } => {
430 assert!(message.contains("required"));
431 }
432 other => panic!("Expected InvalidArgument, got: {:?}", other),
433 }
434 }
435
436 // -------------------------------------------------------------------------
437 // Integration Tests (require temp repository)

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected