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

Function new_kind_bogus_errors

atomic-cli/src/commands/intent/new.rs:234–241  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

232
233 #[test]
234 fn new_kind_bogus_errors() {
235 let (repo, _dir) = init_repo();
236 let err = create_intent(&repo, "Nope", "bogus", None).unwrap_err();
237 assert!(
238 matches!(err, CliError::InvalidArgument { .. }),
239 "unknown kind must be a clean argument error, got {err:?}"
240 );
241 }
242
243 #[test]
244 fn new_review_sets_kind_scaffolds_ref_and_gates() {

Callers

nothing calls this directly

Calls 2

create_intentFunction · 0.85
init_repoFunction · 0.70

Tested by

no test coverage detected