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

Function test_trunk_state_serde

atomic-core/src/crdt/trunk.rs:476–481  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

474
475 #[test]
476 fn test_trunk_state_serde() {
477 let state = TrunkState::Deleted;
478 let json = serde_json::to_string(&state).unwrap();
479 let decoded: TrunkState = serde_json::from_str(&json).unwrap();
480 assert_eq!(state, decoded);
481 }
482
483 // -------------------------------------------------------------------------
484 // Trunk Tests

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected