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

Function test_trunk_serde

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

Source from the content-addressed store, hash-verified

572
573 #[test]
574 fn test_trunk_serde() {
575 let trunk = make_trunk();
576 let json = serde_json::to_string(&trunk).unwrap();
577 let decoded: Trunk = serde_json::from_str(&json).unwrap();
578 assert_eq!(trunk, decoded);
579 }
580
581 // -------------------------------------------------------------------------
582 // TrunkOp Tests

Callers

nothing calls this directly

Calls 2

make_trunkFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected