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

Function test_leaf_serde

atomic-core/src/crdt/leaf.rs:620–625  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

618
619 #[test]
620 fn test_leaf_serde() {
621 let leaf = make_leaf();
622 let json = serde_json::to_string(&leaf).unwrap();
623 let decoded: Leaf = serde_json::from_str(&json).unwrap();
624 assert_eq!(leaf, decoded);
625 }
626
627 // -------------------------------------------------------------------------
628 // LeafOp Tests

Callers

nothing calls this directly

Calls 2

make_leafFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected