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

Function empty_slug_rejected

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

Source from the content-addressed store, hash-verified

197
198 #[test]
199 fn empty_slug_rejected() {
200 let cmd = OrgSet {
201 slug: "".to_string(),
202 no_verify: true, // skip network so the check is the only failure
203 };
204 let err = cmd.run().unwrap_err();
205 match err {
206 CliError::InvalidArgument { message } => {
207 assert!(message.contains("cannot be empty"));
208 }
209 other => panic!("expected InvalidArgument, got {other:?}"),
210 }
211 }
212
213 // -----------------------------------------------------------------
214 // 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