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

Function test_vertex_length

atomic-core/src/apply/position.rs:493–501  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

491
492 #[test]
493 fn test_vertex_length() {
494 let hash = Hash::of(b"change");
495 let node = make_external_vertex(Some(hash), 10, 25);
496
497 // Length should be end - start = 15
498 let len: u64 = node.end.get();
499 let start: u64 = node.start.get();
500 assert_eq!(len - start, 15);
501 }
502
503 // Context Direction Tests
504

Callers

nothing calls this directly

Calls 2

make_external_vertexFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected