xsi/precision/GeometryPrecisionReducer.xsi

filter: Statementstmt 78.5% 11 / 14 Branchbran 36.8% 14 / 38 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 48.0% 25 / 52 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« xsi/MultiPolygon.xsi ↑ Summary xsi/PrepGeometry.xsi »
1 MODULE = Geo::Geos PACKAGE = Geo::Geos::Precision::GeometryPrecisionReducer
2 PROTOTYPES: DISABLE
3  
4 Sv new(SV*, SV* arg0) {
5 GeometryPrecisionReducer* self;
6 1 ▶ Object arg{arg0};
Branch: 1 branch
BranchTrueFalseTotal
Object arg{arg0}; 1 0 1
7 1 ▶ if (arg.stash().name() == "Geo::Geos::PrecisionModel") {
Branch: 4 branches
BranchTrueFalseTotal
if (arg.stash().name() == "Geo::Geos::PrecisionModel") { 1 0 1
if (arg.stash().name() == "Geo::Geos::PrecisionModel") { 1 0 1
if (arg.stash().name() == "Geo::Geos::PrecisionModel") { 1 0 1
if (arg.stash().name() == "Geo::Geos::PrecisionModel") { 1 0 1
8 1 ▶ PrecisionModel& pm = xs::in<PrecisionModel&>(arg);
Branch: 1 branch
BranchTrueFalseTotal
PrecisionModel& pm = xs::in<PrecisionModel&>(arg); 1 0 1
9 1 ▶ self = new GeometryPrecisionReducer(pm);
Branch: 1 branch
BranchTrueFalseTotal
self = new GeometryPrecisionReducer(pm); 1 0 1
10 }
11 else {
12 0 ▶ GeometryFactory& gf = xs::in<GeometryFactory&>(arg);
Branch: 1 branch
BranchTrueFalseTotal
GeometryFactory& gf = xs::in<GeometryFactory&>(arg); 0 0 0
13 0 ▶ self = new GeometryPrecisionReducer(gf);
Branch: 3 branches
BranchTrueFalseTotal
self = new GeometryPrecisionReducer(gf); 0 0 0
self = new GeometryPrecisionReducer(gf); 0 0 0
self = new GeometryPrecisionReducer(gf); 0 0 0
14 }
15 1 ▶ Object wrapped = xs::out<GeometryPrecisionReducer*>(self);
Branch: 2 branches
BranchTrueFalseTotal
Object wrapped = xs::out<GeometryPrecisionReducer*>(self); 1 0 1
Object wrapped = xs::out<GeometryPrecisionReducer*>(self); 1 0 1
16 1 ▶ wrapped.payload_attach(SvRV(arg0), &payload_marker);
Branch: 1 branch
BranchTrueFalseTotal
wrapped.payload_attach(SvRV(arg0), &payload_marker); 1 0 1
17 1 ▶ RETVAL = wrapped.ref();
Branch: 2 branches
BranchTrueFalseTotal
RETVAL = wrapped.ref(); 1 0 1
RETVAL = wrapped.ref(); 1 0 1
18 }
19  
20 1 void GeometryPrecisionReducer::setRemoveCollapsedComponents(bool remove)
21  
22 1 void GeometryPrecisionReducer::setPointwise (bool pointwise)
23  
24 Sv GeometryPrecisionReducer::reduce(Geometry& g) {
25 1 ▶ auto ptr = THIS->reduce(g);
Branch: 1 branch
BranchTrueFalseTotal
auto ptr = THIS->reduce(g); 1 0 1
26 1 ▶ RETVAL = Helper::uplift(ptr.release());
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = Helper::uplift(ptr.release()); 1 0 1
27 }
28  
29 0 ▶int CLONE_SKIP (...) { PERL_UNUSED_VAR(items); RETVAL = 1; }
Branch: 1 branch
BranchTrueFalseTotal
int CLONE_SKIP (...) { PERL_UNUSED_VAR(items); RETVAL = 1; } 0 0 0
« xsi/MultiPolygon.xsi ↑ Summary xsi/PrepGeometry.xsi »