MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / empty_slice_keeps_everything

Function empty_slice_keeps_everything

nodedb-array/src/query/slice.rs:231–237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

229
230 #[test]
231 fn empty_slice_keeps_everything() {
232 let s = schema();
233 let t = tile(&[(0, 0, 1), (5, 5, 2)]);
234 let sl = Slice::new(vec![None, None]);
235 let out = slice_sparse(&s, &t, &sl).unwrap();
236 assert_eq!(out.nnz(), 2);
237 }
238
239 #[test]
240 fn mbr_overlap_skip_disjoint() {

Callers

nothing calls this directly

Calls 3

slice_sparseFunction · 0.85
schemaFunction · 0.70
tileFunction · 0.70

Tested by

no test coverage detected