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

Source from the content-addressed store, hash-verified

286
287 #[test]
288 fn new_kind_bug_sets_bug() {
289 let (repo, _dir) = init_repo();
290 let (created, kind) = create_intent(&repo, "A bug", "bug", None).unwrap();
291 assert_eq!(kind, "bug");
292 assert_eq!(manifest_kind(&repo, &created.id), "bug");
293 let inputs = bridge::read_intent(&repo, &created.id).unwrap();
294 assert_eq!(
295 inputs.frontmatter.get("kind").and_then(|v| v.as_str()),
296 Some("bug")
297 );
298 }
299
300 #[test]
301 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