()
| 922 | |
| 923 | #[test] |
| 924 | fn test_leaf_state_encoding_roundtrip() { |
| 925 | assert_eq!( |
| 926 | decode_leaf_state(encode_leaf_state(LeafState::Alive)), |
| 927 | LeafState::Alive |
| 928 | ); |
| 929 | assert_eq!( |
| 930 | decode_leaf_state(encode_leaf_state(LeafState::Deleted)), |
| 931 | LeafState::Deleted |
| 932 | ); |
| 933 | } |
| 934 | |
| 935 | #[test] |
| 936 | fn test_leaf_state_encoding_unknown_defaults_to_alive() { |
nothing calls this directly
no outgoing calls
no test coverage detected