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:33–39  ·  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

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

Calls

no outgoing calls

Tested by

no test coverage detected