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

Function bbox_extend_grows_bounds

nodedb-array/src/segment/mbr_index/node.rs:79–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77
78 #[test]
79 fn bbox_extend_grows_bounds() {
80 let mut a = BBox {
81 min: vec![DomainBound::Int64(0)],
82 max: vec![DomainBound::Int64(10)],
83 };
84 let b = BBox {
85 min: vec![DomainBound::Int64(-5)],
86 max: vec![DomainBound::Int64(20)],
87 };
88 a.extend(&b);
89 assert_eq!(a.min[0], DomainBound::Int64(-5));
90 assert_eq!(a.max[0], DomainBound::Int64(20));
91 }
92
93 #[test]
94 fn bbox_extend_from_empty_takes_other() {

Callers

nothing calls this directly

Calls 1

extendMethod · 0.45

Tested by

no test coverage detected