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

Function empty_slug_rejected

atomic-cli/src/commands/org/set.rs:214–226  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

212
213 #[test]
214 fn empty_slug_rejected() {
215 let cmd = OrgSet {
216 slug: "".to_string(),
217 no_verify: true, // skip network so the check is the only failure
218 };
219 let err = cmd.run().unwrap_err();
220 match err {
221 CliError::InvalidArgument { message } => {
222 assert!(message.contains("cannot be empty"));
223 }
224 other => panic!("expected InvalidArgument, got {other:?}"),
225 }
226 }
227
228 // -----------------------------------------------------------------
229 // Regression invariant: when the verifier fails, config must NOT be

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected