()
| 1288 | |
| 1289 | #[test] |
| 1290 | fn mutable_push_unchecked_unaligned_u64() { |
| 1291 | let mut buf = MutableBuffer::new(16); |
| 1292 | unsafe { |
| 1293 | buf.push_unchecked(1_u8); |
| 1294 | buf.push_unchecked(1_u64); |
| 1295 | } |
| 1296 | assert_eq!(9, buf.len()); |
| 1297 | assert_eq!(&[1u8, 1u8, 0, 0, 0, 0, 0, 0, 0], buf.as_slice()); |
| 1298 | } |
| 1299 | |
| 1300 | #[test] |
| 1301 | fn test_from_trusted_len_iter() { |
nothing calls this directly
no test coverage detected