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

Function test_ordering_entry_serde

atomic-core/src/crdt/apply/order.rs:592–597  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

590
591 #[test]
592 fn test_ordering_entry_serde() {
593 let entry: OrderingEntry<i32> = OrderingEntry::new(5, Some(3));
594 let json = serde_json::to_string(&entry).unwrap();
595 let restored: OrderingEntry<i32> = serde_json::from_str(&json).unwrap();
596 assert_eq!(entry, restored);
597 }
598
599 // OrderingSequence Tests
600

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected