Branch Coverage

xsi/index/SpatialIndex.xsi
Criterion Covered Total %
branch 19 34 55.8


line true false branch
5 7 0 Object me {ST(0)};
5 2 Object me {ST(0)};
9 5 2 if (!arg) {
11 5 0 THIS->query(&env, v);
12 5 0 RETVAL = Helper::wrap_inc_SVs(&v, real_payload->map);
15 2 0 Sub visitor {arg};
16 0 2 if (!visitor) throw "Unsupported argument";
17 2 0 SubItemVisitor v{visitor, real_payload->map};
2 0 SubItemVisitor v{visitor, real_payload->map};
18 2 0 THIS->query(&env, v);
24 16 0 Object me{ST(0)};
28 16 0 SV* value = Helper::store_sv(item, real_payload->map);
29 16 0 THIS->insert(&env, value);
33 3 0 Object me{ST(0)};
37 3 0 SV* value = hv_delete_ent(real_payload->map, item, 0, 0);
38 0 3 if (!value) throw "value is n/a in hash";
40 3 0 RETVAL = THIS->remove(&env, value);