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

Source from the content-addressed store, hash-verified

291
292 #[test]
293 fn new_kind_bogus_errors() {
294 let (repo, _dir) = init_repo();
295 let err = create_intent(&repo, "Nope", "bogus", None).unwrap_err();
296 assert!(
297 matches!(err, CliError::InvalidArgument { .. }),
298 "unknown kind must be a clean argument error, got {err:?}"
299 );
300 }
301
302 #[test]
303 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