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

Function test_vertex_encoding_ordering

atomic-core/src/pristine/tables.rs:954–962  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

952
953 #[test]
954 fn test_vertex_encoding_ordering() {
955 // Verify that encoded vertices sort correctly (by change_id, then start, then end)
956 let v1 = encode_vertex(1, 0, 10);
957 let v2 = encode_vertex(1, 10, 20);
958 let v3 = encode_vertex(2, 0, 10);
959
960 assert!(v1 < v2, "same change, v1 should be before v2");
961 assert!(v2 < v3, "v2 should be before v3 (different change)");
962 }
963
964 #[test]
965 fn test_vertex_encoding_ordering_across_byte_boundary() {

Callers

nothing calls this directly

Calls 1

encode_vertexFunction · 0.85

Tested by

no test coverage detected