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

Function make_edge

atomic-core/tests/inode_graph_test.rs:33–36  ·  view source on GitHub ↗

Helper to create a test edge.

(flag: EdgeFlags, change: u64, pos: u64, intro: u64)

Source from the content-addressed store, hash-verified

31
32/// Helper to create a test edge.
33fn make_edge(flag: EdgeFlags, change: u64, pos: u64, intro: u64) -> SerializedGraphEdge {
34 let dest = Position::new(NodeId::new(change), ChangePosition::new(pos));
35 SerializedGraphEdge::new(flag, dest, NodeId::new(intro))
36}
37
38// InodeVertex Type Tests
39

Callers 3

test_edge_creationFunction · 0.70
test_edge_roundtripFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected