()
| 135 | |
| 136 | #[test] |
| 137 | fn encode_decode() { |
| 138 | let mut buf = [0u8; 4]; |
| 139 | for val in 0..=270549119 { |
| 140 | let mut res = encode_vlq(val, &mut buf); |
| 141 | let val_res = read_vlq(&mut res).unwrap(); |
| 142 | assert_eq!(val, val_res); |
| 143 | assert!(res.is_empty()); |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | #[test] |
| 148 | #[rustfmt::skip] |
nothing calls this directly
no test coverage detected