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

Function fixture

atomic-cli/src/commands/rpc.rs:7775–7787  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7773 use atomic_core::change::ProvenanceGraph;
7774
7775 fn fixture() -> (pb::VersionedBytes, pb::Hash) {
7776 let graph = ProvenanceGraph::builder("session", "opencode").build();
7777 (
7778 pb::VersionedBytes {
7779 schema: "atomic.prov.graph.v1".into(),
7780 payload: serde_json::to_vec(&graph).unwrap(),
7781 },
7782 pb::Hash {
7783 value: Merkle::of(b"original stored artifact").0.to_vec(),
7784 algorithm: pb::HashAlgorithm::Blake3 as i32,
7785 },
7786 )
7787 }
7788
7789 #[test]
7790 fn preserves_stored_identity_instead_of_rehashing_upgraded_graph() {

Calls 2

buildMethod · 0.45
unwrapMethod · 0.45