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

Function mbr_all_null_attr

nodedb-array/src/tile/mbr.rs:236–245  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

234
235 #[test]
236 fn mbr_all_null_attr() {
237 let mut b = MbrBuilder::new(1, 1);
238 b.fold(&[CoordValue::Int64(0)], &[CellValue::Null]);
239 b.fold(&[CoordValue::Int64(1)], &[CellValue::Null]);
240 let m = b.build();
241 assert!(matches!(
242 m.attr_stats[0],
243 AttrStats::AllNull { null_count: 2 }
244 ));
245 }
246
247 #[test]
248 fn mbr_categorical_attr_stats() {

Callers

nothing calls this directly

Calls 2

foldMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected