()
| 167 | /// Compile-time proof that `PlainMmapBacking` satisfies `Send + Sync`. |
| 168 | #[test] |
| 169 | fn plain_backing_is_send_sync() { |
| 170 | fn assert_send_sync<T: Send + Sync>(_: &T) {} |
| 171 | |
| 172 | let dir = tempdir().unwrap(); |
| 173 | let path = dir.path().join("check.ndvs"); |
| 174 | let seg = MmapVectorSegment::create(&path, 2, &[&[1.0_f32, 2.0]]).unwrap(); |
| 175 | let backing = PlainMmapBacking::new(seg); |
| 176 | |
| 177 | assert_send_sync(&backing); |
| 178 | } |
| 179 | |
| 180 | #[test] |
| 181 | fn plain_backing_out_of_bounds_returns_none() { |
nothing calls this directly
no test coverage detected