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

Function test_root_vertex

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

Source from the content-addressed store, hash-verified

276
277#[test]
278fn test_root_vertex() {
279 let root = GraphNode::<NodeId>::ROOT;
280 assert!(root.is_root());
281 assert!(root.is_empty());
282 assert_eq!(root.len(), 0);
283
284 let bytes = vertex_to_bytes(&root);
285 // Root should be all zeros
286 assert_eq!(bytes, [0u8; 24]);
287}
288
289// Two-Level B-Tree Conceptual Tests
290

Callers

nothing calls this directly

Calls 1

vertex_to_bytesFunction · 0.85

Tested by

no test coverage detected