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

Function test_trunk_op_serde

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

Source from the content-addressed store, hash-verified

646
647 #[test]
648 fn test_trunk_op_serde() {
649 let op = TrunkOp::Create {
650 path: "test.rs".to_string(),
651 encoding: Some(Encoding::Utf8),
652 };
653 let json = serde_json::to_string(&op).unwrap();
654 let decoded: TrunkOp = serde_json::from_str(&json).unwrap();
655 assert_eq!(op, decoded);
656 }
657}

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected