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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected