()
| 1391 | |
| 1392 | #[test] |
| 1393 | fn test_mutable_set_null_bits() { |
| 1394 | let mut buffer = MutableBuffer::new(8).with_bitset(8, true); |
| 1395 | |
| 1396 | for i in 0..=buffer.capacity() { |
| 1397 | buffer.set_null_bits(i, 0); |
| 1398 | assert_eq!(buffer[..8], [255; 8][..]); |
| 1399 | } |
| 1400 | |
| 1401 | buffer.set_null_bits(1, 4); |
| 1402 | assert_eq!(buffer[..8], [255, 0, 0, 0, 0, 255, 255, 255][..]); |
| 1403 | } |
| 1404 | |
| 1405 | #[test] |
| 1406 | #[should_panic = "out of bounds for buffer of length"] |
nothing calls this directly
no test coverage detected