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

Function test_branch_serde

atomic-core/src/crdt/branch.rs:640–645  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

638
639 #[test]
640 fn test_branch_serde() {
641 let branch = make_branch();
642 let json = serde_json::to_string(&branch).unwrap();
643 let decoded: Branch = serde_json::from_str(&json).unwrap();
644 assert_eq!(branch, decoded);
645 }
646
647 // -------------------------------------------------------------------------
648 // BranchOp Tests

Callers

nothing calls this directly

Calls 2

make_branchFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected