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

Function graph_fixture

libatomic/src/review/incremental.rs:1282–1298  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1280 }
1281
1282 fn graph_fixture() -> (tempfile::TempDir, Repository, IntentCreateResult, Hash) {
1283 let (dir, repo) = fixture();
1284 let intent = work(&repo, "Deliver work", None);
1285 repo.vault_intent_update(&intent.id, atomic_repository::IntentUpdateOptions {
1286 content: Some(format!(":::why\nDeliver working behavior.\n:::\n\n:::acceptance-criterion{{#{}-ac-1 status=met verifiedBy=author evidence=claimed}}\nCalling work returns successfully.\n:::\n\n:::task{{#{}-1 status=done criteria={}-ac-1}}\nImplement work.\n::file-ref{{path=src/lib.rs}}\n:::\n", intent.uid, intent.uid, intent.uid)),
1287 ..Default::default()
1288 }).unwrap();
1289 let hash = record_path(&repo, "src/lib.rs", "pub fn work() { todo!(); }\n");
1290 checkpoint(
1291 &repo,
1292 "review-graph-source",
1293 10,
1294 vec![hash],
1295 Some(&intent.uid),
1296 );
1297 (dir, repo, intent, hash)
1298 }
1299
1300 fn input_file(
1301 repo: &Repository,

Calls 6

workFunction · 0.85
vault_intent_updateMethod · 0.80
fixtureFunction · 0.70
record_pathFunction · 0.70
checkpointFunction · 0.70
unwrapMethod · 0.45