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

Source from the content-addressed store, hash-verified

228
229 #[test]
230 fn new_kind_bug_sets_bug() {
231 let (repo, _dir) = init_repo();
232 let (created, kind) = create_intent(&repo, "A bug", "bug", None).unwrap();
233 assert_eq!(kind, "bug");
234 assert_eq!(manifest_kind(&repo, &created.id), "bug");
235 let inputs = bridge::read_intent(&repo, &created.id).unwrap();
236 assert_eq!(
237 inputs.frontmatter.get("kind").and_then(|v| v.as_str()),
238 Some("bug")
239 );
240 }
241
242 #[test]
243 fn new_kind_bogus_errors() {

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected