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

Function test_edge_creation

atomic-core/tests/inode_graph_test.rs:179–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177
178#[test]
179fn test_edge_creation() {
180 let edge = make_edge(EdgeFlags::BLOCK, 2, 5, 1);
181
182 assert_eq!(edge.flag(), EdgeFlags::BLOCK);
183 assert_eq!(edge.dest().change, NodeId::new(2));
184 assert_eq!(edge.dest().pos, ChangePosition::new(5));
185 assert_eq!(edge.introduced_by(), NodeId::new(1));
186}
187
188#[test]
189fn test_edge_flags_combinations() {

Callers

nothing calls this directly

Calls 1

make_edgeFunction · 0.70

Tested by

no test coverage detected