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

Function new_kind_bug_sets_bug

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

Source from the content-addressed store, hash-verified

219
220 #[test]
221 fn new_kind_bug_sets_bug() {
222 let (repo, _dir) = init_repo();
223 let (created, kind) = create_intent(&repo, "A bug", "bug", None).unwrap();
224 assert_eq!(kind, "bug");
225 assert_eq!(manifest_kind(&repo, &created.id), "bug");
226 let inputs = bridge::read_intent(&repo, &created.id).unwrap();
227 assert_eq!(
228 inputs.frontmatter.get("kind").and_then(|v| v.as_str()),
229 Some("bug")
230 );
231 }
232
233 #[test]
234 fn new_kind_bogus_errors() {

Callers

nothing calls this directly

Calls 4

create_intentFunction · 0.85
read_intentFunction · 0.85
init_repoFunction · 0.70
unwrapMethod · 0.45

Tested by

no test coverage detected