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

Function make_change

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

Create a test change with content

(content: &[u8])

Source from the content-addressed store, hash-verified

753
754 /// Create a test change with content
755 fn make_change(content: &[u8]) -> Change {
756 let mut change = Change::empty(ChangeHeader::new("test"));
757 change.contents = content.to_vec();
758 change
759 }
760
761 /// Create a minimal alive graph with one node
762 fn make_simple_graph(node: GraphNode<NodeId>) -> AliveGraph {

Calls

no outgoing calls