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

Function test_empty_vertex

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

Source from the content-addressed store, hash-verified

482
483 #[test]
484 fn test_empty_vertex() {
485 let hash = Hash::of(b"change");
486 let node = make_external_vertex(Some(hash), 10, 10);
487
488 // Empty span has start == end
489 assert_eq!(node.start, node.end);
490 }
491
492 #[test]
493 fn test_vertex_length() {

Callers

nothing calls this directly

Calls 1

make_external_vertexFunction · 0.70

Tested by

no test coverage detected