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

Function test_branch_state_serde

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

Source from the content-addressed store, hash-verified

543
544 #[test]
545 fn test_branch_state_serde() {
546 let state = BranchState::Deleted;
547 let json = serde_json::to_string(&state).unwrap();
548 let decoded: BranchState = serde_json::from_str(&json).unwrap();
549 assert_eq!(state, decoded);
550 }
551
552 // -------------------------------------------------------------------------
553 // Branch Tests

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected