()
| 499 | |
| 500 | #[test] |
| 501 | fn read_multiple_columns() { |
| 502 | let segment = write_test_segment(50); |
| 503 | let reader = SegmentReader::open(&segment).expect("open"); |
| 504 | |
| 505 | let cols = reader.read_columns(&[0, 2], &[]).expect("read multi"); |
| 506 | assert_eq!(cols.len(), 2); |
| 507 | |
| 508 | // Column 0 (id): Int64. |
| 509 | match &cols[0] { |
| 510 | DecodedColumn::Int64 { values, .. } => { |
| 511 | assert_eq!(values.len(), 50); |
| 512 | } |
| 513 | _ => panic!("expected Int64 for id"), |
| 514 | } |
| 515 | } |
| 516 | |
| 517 | #[test] |
| 518 | fn column_out_of_range() { |
nothing calls this directly
no test coverage detected