()
| 251 | |
| 252 | #[test] |
| 253 | fn bulk_insert() { |
| 254 | let mut idx = PkIndex::new(); |
| 255 | let pks: Vec<Vec<u8>> = (0..10).map(|i| encode_pk(&Value::Integer(i))).collect(); |
| 256 | |
| 257 | idx.bulk_insert(0, &pks).expect("bulk insert"); |
| 258 | assert_eq!(idx.len(), 10); |
| 259 | |
| 260 | // Verify row indices. |
| 261 | let loc = idx.get(&pks[5]).expect("lookup"); |
| 262 | assert_eq!(loc.segment_id, 0); |
| 263 | assert_eq!(loc.row_index, 5); |
| 264 | } |
| 265 | |
| 266 | #[test] |
| 267 | fn remap_segment() { |
nothing calls this directly
no test coverage detected