()
| 373 | |
| 374 | #[test] |
| 375 | fn test_append_buffers() { |
| 376 | let mut builder = NullBufferBuilder::new(0); |
| 377 | let buffer1 = NullBuffer::from(&[true, true]); |
| 378 | let buffer2 = NullBuffer::from(&[true, true, false]); |
| 379 | |
| 380 | builder.append_buffer(&buffer1); |
| 381 | builder.append_buffer(&buffer2); |
| 382 | |
| 383 | assert_eq!(builder.as_slice().unwrap(), &[0b01111_u8]); |
| 384 | } |
| 385 | |
| 386 | #[test] |
| 387 | fn test_append_buffers_with_unaligned_length() { |
nothing calls this directly
no test coverage detected