()
| 905 | |
| 906 | #[test] |
| 907 | fn test_branch_state_encoding_roundtrip() { |
| 908 | assert_eq!( |
| 909 | decode_branch_state(encode_branch_state(BranchState::Alive)), |
| 910 | BranchState::Alive |
| 911 | ); |
| 912 | assert_eq!( |
| 913 | decode_branch_state(encode_branch_state(BranchState::Deleted)), |
| 914 | BranchState::Deleted |
| 915 | ); |
| 916 | } |
| 917 | |
| 918 | #[test] |
| 919 | fn test_branch_state_encoding_unknown_defaults_to_alive() { |
nothing calls this directly
no outgoing calls
no test coverage detected