()
| 974 | |
| 975 | #[test] |
| 976 | fn test_branch_value_encoding_roundtrip() { |
| 977 | let data = SerializedBranch { |
| 978 | trunk_id: TrunkId::new(NodeId::new(42), 5), |
| 979 | state: BranchState::Alive, |
| 980 | line_hash: 0x123456789ABCDEF0, |
| 981 | }; |
| 982 | |
| 983 | let bytes = encode_branch_value(&data); |
| 984 | assert_eq!(bytes.len(), 24); |
| 985 | |
| 986 | let decoded = decode_branch_value(&bytes); |
| 987 | assert_eq!(data, decoded); |
| 988 | } |
| 989 | |
| 990 | #[test] |
| 991 | fn test_branch_value_encoding_deleted_state() { |
nothing calls this directly
no test coverage detected