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

Function test_trunk_serde

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

Source from the content-addressed store, hash-verified

546
547 #[test]
548 fn test_trunk_serde() {
549 let trunk = make_trunk();
550 let json = serde_json::to_string(&trunk).unwrap();
551 let decoded: Trunk = serde_json::from_str(&json).unwrap();
552 assert_eq!(trunk, decoded);
553 }
554
555 // -------------------------------------------------------------------------
556 // TrunkOp Tests

Callers

nothing calls this directly

Calls 2

make_trunkFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected