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

Function make_graph_node

atomic-core/src/change/format_v3/compact/tests.rs:34–40  ·  view source on GitHub ↗

Helper: make a GraphNode > with a specific hash.

(hash: Option<Hash>, start: u64, end: u64)

Source from the content-addressed store, hash-verified

32
33/// Helper: make a GraphNode<Option<Hash>> with a specific hash.
34fn make_graph_node(hash: Option<Hash>, start: u64, end: u64) -> crate::GraphNode<Option<Hash>> {
35 crate::GraphNode {
36 change: hash,
37 start: ChangePosition::new(start),
38 end: ChangePosition::new(end),
39 }
40}
41
42/// Helper: create a Compactor with a known set of hashes.
43fn make_compactor_and_table() -> HashDedupTable {

Calls

no outgoing calls

Tested by

no test coverage detected