Branch Coverage

xsi/triangulate/DelaunayTriangulationBuilder.xsi
Criterion Covered Total %
branch 36 68 52.9


line true false branch
5 2 0 auto builder = std::unique_ptr(new DelaunayTriangulationBuilder());
2 0 auto builder = std::unique_ptr(new DelaunayTriangulationBuilder());
2 0 auto builder = std::unique_ptr(new DelaunayTriangulationBuilder());
6 2 0 GeometryFactory* factory = xs::in(geometry_factory);
8 2 0 if (sites.is_array_ref()) {
1 1 if (sites.is_array_ref()) {
9 1 0 auto seq = std::unique_ptr(Helper::convert_copy(*factory, sites, 2));
1 0 auto seq = std::unique_ptr(Helper::convert_copy(*factory, sites, 2));
10 1 0 builder->setSites(*seq);
13 1 0 auto& g = xs::in(sites);
14 1 0 builder->setSites(g);
17 1 1 if (tolerance) {
18 1 0 builder->setTolerance(Simple(tolerance));
1 0 builder->setTolerance(Simple(tolerance));
21 2 0 Object wrapped = xs::out(builder.release());
2 0 Object wrapped = xs::out(builder.release());
2 0 Object wrapped = xs::out(builder.release());
22 2 0 wrapped.payload_attach(SvRV(geometry_factory), &payload_marker);
23 2 0 RETVAL = wrapped.ref();
2 0 RETVAL = wrapped.ref();
27 2 0 Object me{ST(0)};
2 0 Object me{ST(0)};
29 2 0 GeometryFactory* factory = xs::in(payload.obj);
30 2 0 auto edges = THIS->getEdges(*factory);
2 0 auto edges = THIS->getEdges(*factory);
31 2 0 RETVAL = Helper::uplift(edges.release());
2 0 RETVAL = Helper::uplift(edges.release());
35 2 0 Object me{ST(0)};
2 0 Object me{ST(0)};
37 2 0 GeometryFactory* factory = xs::in(payload.obj);
38 2 0 auto edges = THIS->getTriangles(*factory);
2 0 auto edges = THIS->getTriangles(*factory);
39 2 0 RETVAL = Helper::uplift(edges.release());
2 0 RETVAL = Helper::uplift(edges.release());