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

Function empty_slug_rejected

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected