()
| 553 | |
| 554 | #[test] |
| 555 | fn prefetch_does_not_crash() { |
| 556 | let dir = tempfile::tempdir().unwrap(); |
| 557 | let path = dir.path().join("prefetch.vseg"); |
| 558 | |
| 559 | let v = vec![1.0f32; 768]; |
| 560 | let seg = MmapVectorSegment::create(&path, 768, &[&v]).unwrap(); |
| 561 | seg.prefetch(0); |
| 562 | seg.prefetch(999); |
| 563 | } |
| 564 | |
| 565 | #[test] |
| 566 | fn empty_segment() { |