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

Function make_vertex

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

Helper to create a test span.

(change: u64, start: u64, end: u64)

Source from the content-addressed store, hash-verified

17
18/// Helper to create a test span.
19fn make_vertex(change: u64, start: u64, end: u64) -> GraphNode<NodeId> {
20 GraphNode {
21 change: NodeId::new(change),
22 start: ChangePosition::new(start),
23 end: ChangePosition::new(end),
24 }
25}
26
27/// Helper to create a test inode.
28fn make_inode(id: u64) -> Inode {

Calls

no outgoing calls

Tested by

no test coverage detected