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

Function make_change

atomic-core/src/output/repo/content.rs:788–792  ·  view source on GitHub ↗

Create a test change with content

(content: &[u8])

Source from the content-addressed store, hash-verified

786
787 /// Create a test change with content
788 fn make_change(content: &[u8]) -> Change {
789 let mut change = Change::empty(ChangeHeader::new("test"));
790 change.contents = content.to_vec();
791 change
792 }
793
794 /// Create a minimal alive graph with one node
795 fn make_simple_graph(node: GraphNode<NodeId>) -> AliveGraph {

Calls

no outgoing calls