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

Source from the content-addressed store, hash-verified

278
279 #[test]
280 fn new_kind_bug_sets_bug() {
281 let (repo, _dir) = init_repo();
282 let (created, kind) = create_intent(&repo, "A bug", "bug", None).unwrap();
283 assert_eq!(kind, "bug");
284 assert_eq!(manifest_kind(&repo, &created.id), "bug");
285 let inputs = bridge::read_intent(&repo, &created.id).unwrap();
286 assert_eq!(
287 inputs.frontmatter.get("kind").and_then(|v| v.as_str()),
288 Some("bug")
289 );
290 }
291
292 #[test]
293 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