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

Function fixture

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

Source from the content-addressed store, hash-verified

7861 use atomic_core::change::ProvenanceGraph;
7862
7863 fn fixture() -> (pb::VersionedBytes, pb::Hash) {
7864 let graph = ProvenanceGraph::builder("session", "opencode").build();
7865 (
7866 pb::VersionedBytes {
7867 schema: "atomic.prov.graph.v1".into(),
7868 payload: serde_json::to_vec(&graph).unwrap(),
7869 },
7870 pb::Hash {
7871 value: Merkle::of(b"original stored artifact").0.to_vec(),
7872 algorithm: pb::HashAlgorithm::Blake3 as i32,
7873 },
7874 )
7875 }
7876
7877 #[test]
7878 fn preserves_stored_identity_instead_of_rehashing_upgraded_graph() {

Calls 2

buildMethod · 0.45
unwrapMethod · 0.45