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

Source from the content-addressed store, hash-verified

245
246 #[test]
247 fn test_run_without_name() {
248 let cmd = Switch::default();
249 let result = cmd.run();
250 assert!(result.is_err());
251 match result.unwrap_err() {
252 CliError::InvalidArgument { message } => {
253 assert!(message.contains("required"));
254 }
255 other => panic!("Expected InvalidArgument, got: {:?}", other),
256 }
257 }
258
259 // -------------------------------------------------------------------------
260 // Integration Tests (require temp repository)

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected