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

Function test_leaf_id_display

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

Source from the content-addressed store, hash-verified

437
438 #[test]
439 fn test_leaf_id_display() {
440 let id = LeafId::new(NodeId::new(42), 3);
441 assert_eq!(format!("{}", id), "L42:3");
442 assert_eq!(format!("{:?}", id), "LeafId(42, 3)");
443 }
444
445 #[test]
446 fn test_leaf_id_serde() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected