Branch Coverage

xsi/triangulate/VoronoiDiagramBuilder.xsi
Criterion Covered Total %
branch 35 74 47.3


line true false branch
5 1 0 auto builder = std::unique_ptr(new VoronoiDiagramBuilder());
1 0 auto builder = std::unique_ptr(new VoronoiDiagramBuilder());
1 0 auto builder = std::unique_ptr(new VoronoiDiagramBuilder());
6 1 0 GeometryFactory* factory = xs::in(geometry_factory);
8 1 0 if (sites.is_array_ref()) {
1 0 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 0 0 auto& g = xs::in(sites);
14 0 0 builder->setSites(g);
17 1 0 if (tolerance) {
18 1 0 builder->setTolerance(Simple(tolerance));
1 0 builder->setTolerance(Simple(tolerance));
1 0 builder->setTolerance(Simple(tolerance));
21 1 0 if (env) {
22 1 0 auto envelope = xs::in(env);
23 1 0 builder->setClipEnvelope(envelope);
26 1 0 Object wrapped = xs::out(builder.release());
1 0 Object wrapped = xs::out(builder.release());
1 0 Object wrapped = xs::out(builder.release());
27 1 0 wrapped.payload_attach(SvRV(geometry_factory), &payload_marker);
28 1 0 RETVAL = wrapped.ref();
1 0 RETVAL = wrapped.ref();
32 1 0 Object me{ST(0)};
1 0 Object me{ST(0)};
34 1 0 GeometryFactory* factory = xs::in(payload.obj);
35 1 0 auto edges = THIS->getDiagramEdges(*factory);
1 0 auto edges = THIS->getDiagramEdges(*factory);
36 1 0 RETVAL = Helper::uplift(edges.release());
40 1 0 Object me{ST(0)};
1 0 Object me{ST(0)};
42 1 0 GeometryFactory* factory = xs::in(payload.obj);
43 1 0 auto edges = THIS->getDiagram(*factory);
1 0 auto edges = THIS->getDiagram(*factory);
44 1 0 RETVAL = Helper::uplift(edges.release());
1 0 RETVAL = Helper::uplift(edges.release());