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

Function test_trunk_id_new

atomic-core/src/crdt/ids.rs:308–312  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

306
307 #[test]
308 fn test_trunk_id_new() {
309 let id = TrunkId::new(NodeId::new(42), 5);
310 assert_eq!(id.change_id(), NodeId::new(42));
311 assert_eq!(id.file_idx(), 5);
312 }
313
314 #[test]
315 fn test_trunk_id_root() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected