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

Function test_leaf_state_serde

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

Source from the content-addressed store, hash-verified

497
498 #[test]
499 fn test_leaf_state_serde() {
500 let state = LeafState::Deleted;
501 let json = serde_json::to_string(&state).unwrap();
502 let decoded: LeafState = serde_json::from_str(&json).unwrap();
503 assert_eq!(state, decoded);
504 }
505
506 // -------------------------------------------------------------------------
507 // Leaf Tests

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected