xsi/noding/SingleInteriorIntersectionFinder.xsi

filter: Statementstmt 87.5% 14 / 16 Branchbran 42.5% 17 / 40 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 55.3% 31 / 56 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« xsi/Coordinate.xsi ↑ Summary xsi/Polygon.xsi »
1 MODULE = Geo::Geos PACKAGE = Geo::Geos::Noding::SingleInteriorIntersectionFinder
2 PROTOTYPES: DISABLE
3  
4 Sv new(SV*,SV* liObj) {
5 1 ▶ auto& li = xs::in<LineIntersector&>(liObj);
Branch: 1 branch
BranchTrueFalseTotal
auto& li = xs::in<LineIntersector&>(liObj); 1 0 1
6 1 ▶ Sv wrapped = xs::out<>(new SingleInteriorIntersectionFinder(li));
Branch: 4 branches
BranchTrueFalseTotal
Sv wrapped = xs::out<>(new SingleInteriorIntersectionFinder(li)); 1 0 1
Sv wrapped = xs::out<>(new SingleInteriorIntersectionFinder(li)); 1 0 1
Sv wrapped = xs::out<>(new SingleInteriorIntersectionFinder(li)); 1 0 1
Sv wrapped = xs::out<>(new SingleInteriorIntersectionFinder(li)); 0 0 0
7 1 ▶ wrapped.payload_attach(SvRV(liObj), &payload_marker);
Branch: 1 branch
BranchTrueFalseTotal
wrapped.payload_attach(SvRV(liObj), &payload_marker); 1 0 1
8 1 ▶ RETVAL = wrapped;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = wrapped; 1 0 1
9 }
10  
11  
12 0 ▶bool SingleInteriorIntersectionFinder::hasIntersection ()
Branch: 1 branch
BranchTrueFalseTotal
bool SingleInteriorIntersectionFinder::hasIntersection () 0 0 0
13  
14 Coordinate* SingleInteriorIntersectionFinder::getInteriorIntersection() {
15 1 RETVAL = new Coordinate(THIS->getInteriorIntersection());
16 1 ▶}
Branch: 2 branches
BranchTrueFalseTotal
} 1 0 1
} 1 0 1
17  
18 xs::Array SingleInteriorIntersectionFinder::getIntersectionSegments() {
19 1 auto& vector = THIS->getIntersectionSegments();
20 1 ▶ auto r = xs::Array::create(vector.size());
Branch: 1 branch
BranchTrueFalseTotal
auto r = xs::Array::create(vector.size()); 1 0 1
21 5 ▶ for(auto& c: vector) {
Branch: 1 branch
BranchTrueFalseTotal
for(auto& c: vector) { 4 1 5
22 4 ▶ auto copy = xs::out<Coordinate*>(new Coordinate(c));
Branch: 3 branches
BranchTrueFalseTotal
auto copy = xs::out<Coordinate*>(new Coordinate(c)); 4 0 4
auto copy = xs::out<Coordinate*>(new Coordinate(c)); 4 0 4
auto copy = xs::out<Coordinate*>(new Coordinate(c)); 0 0 0
23 4 ▶ r.push(copy);
Branch: 1 branch
BranchTrueFalseTotal
r.push(copy); 4 0 4
24 4 }
25 1 ▶ RETVAL = r;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = r; 1 0 1
26 }
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
30  
31 BOOT {
32 46 ▶ Stash(__PACKAGE__).inherit("Geo::Geos::Noding::SegmentIntersector");
Branch: 2 branches
BranchTrueFalseTotal
Stash(__PACKAGE__).inherit("Geo::Geos::Noding::SegmentIntersector"); 46 0 46
Stash(__PACKAGE__).inherit("Geo::Geos::Noding::SegmentIntersector"); 46 0 46
33 }
« xsi/Coordinate.xsi ↑ Summary xsi/Polygon.xsi »