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:301–308  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

299
300 #[test]
301 fn new_kind_bogus_errors() {
302 let (repo, _dir) = init_repo();
303 let err = create_intent(&repo, "Nope", "bogus", None).unwrap_err();
304 assert!(
305 matches!(err, CliError::InvalidArgument { .. }),
306 "unknown kind must be a clean argument error, got {err:?}"
307 );
308 }
309
310 #[test]
311 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