xsi/noding/SimpleSnapRounder.xsi

filter: Statementstmt 92.3% 12 / 13 Branchbran 47.6% 20 / 42 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 58.1% 32 / 55 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« xsi/noding/BasicSegmentString.xsi ↑ Summary xsi/noding/NodedSegmentString.xsi »
1 MODULE = Geo::Geos PACKAGE = Geo::Geos::Noding::SimpleSnapRounder
2 PROTOTYPES: DISABLE
3  
4 Sv new(SV*, SV* precisionModel) {
5 2 ▶ auto& pm = xs::in<PrecisionModel&>(precisionModel);
Branch: 1 branch
BranchTrueFalseTotal
auto& pm = xs::in<PrecisionModel&>(precisionModel); 2 0 2
6 2 ▶ Object wrapped = xs::out<SimpleSnapRounder*>(new SimpleSnapRounder(pm));
Branch: 5 branches
BranchTrueFalseTotal
Object wrapped = xs::out<SimpleSnapRounder*>(new SimpleSnapRounder(pm)); 2 0 2
Object wrapped = xs::out<SimpleSnapRounder*>(new SimpleSnapRounder(pm)); 2 0 2
Object wrapped = xs::out<SimpleSnapRounder*>(new SimpleSnapRounder(pm)); 2 0 2
Object wrapped = xs::out<SimpleSnapRounder*>(new SimpleSnapRounder(pm)); 2 0 2
Object wrapped = xs::out<SimpleSnapRounder*>(new SimpleSnapRounder(pm)); 0 0 0
7 2 ▶ wrapped.payload_attach(precisionModel, &payload_marker);
Branch: 1 branch
BranchTrueFalseTotal
wrapped.payload_attach(precisionModel, &payload_marker); 2 0 2
8 2 ▶ RETVAL = wrapped.ref();
Branch: 2 branches
BranchTrueFalseTotal
RETVAL = wrapped.ref(); 2 0 2
RETVAL = wrapped.ref(); 2 0 2
9 }
10  
11 void SimpleSnapRounder::computeVertexSnaps (Array edges) {
12 2 std::vector<SegmentString *> v;
13 2 ▶ v.reserve(edges.size());
Branch: 2 branches
BranchTrueFalseTotal
v.reserve(edges.size()); 2 0 2
v.reserve(edges.size()); 2 0 2
14  
15 4 ▶ for(auto it: edges) {
Branch: 4 branches
BranchTrueFalseTotal
for(auto it: edges) { 2 0 2
for(auto it: edges) { 2 0 2
for(auto it: edges) { 2 0 2
for(auto it: edges) { 2 2 4
16 2 ▶ auto& ss = xs::in<SegmentString&>(it);
Branch: 1 branch
BranchTrueFalseTotal
auto& ss = xs::in<SegmentString&>(it); 2 0 2
17 2 ▶ v.push_back(&ss);
Branch: 1 branch
BranchTrueFalseTotal
v.push_back(&ss); 2 0 2
18 2 }
19 2 ▶ THIS->computeVertexSnaps(v);
Branch: 1 branch
BranchTrueFalseTotal
THIS->computeVertexSnaps(v); 2 0 2
20 }
21  
22  
23 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
24  
25 BOOT {
26 46 ▶ Stash(__PACKAGE__).inherit("Geo::Geos::Noding::Noder");
Branch: 2 branches
BranchTrueFalseTotal
Stash(__PACKAGE__).inherit("Geo::Geos::Noding::Noder"); 46 0 46
Stash(__PACKAGE__).inherit("Geo::Geos::Noding::Noder"); 46 0 46
27 }
« xsi/noding/BasicSegmentString.xsi ↑ Summary xsi/noding/NodedSegmentString.xsi »