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

Function empty_slug_rejected

atomic-cli/src/commands/workspace/set.rs:211–224  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

209
210 #[test]
211 fn empty_slug_rejected() {
212 let cmd = WorkspaceSet {
213 slug: "".to_string(),
214 org: None,
215 no_verify: true, // skip network so the empty-slug check is the only failure
216 };
217 let err = cmd.run().unwrap_err();
218 match err {
219 CliError::InvalidArgument { message } => {
220 assert!(message.contains("cannot be empty"));
221 }
222 other => panic!("expected InvalidArgument, got {other:?}"),
223 }
224 }
225
226 #[test]
227 fn empty_org_override_rejected() {

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected