xsi/noding/NodedSegmentString.xsi

filter: Statementstmt 90.0% 18 / 20 Branchbran 46.0% 23 / 50 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 58.5% 41 / 70 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« xsi/noding/SimpleSnapRounder.xsi ↑ Summary xsi/algorithm/MinimumDiameter.xsi »
1 MODULE = Geo::Geos PACKAGE = Geo::Geos::Noding::NodedSegmentString
2 PROTOTYPES: DISABLE
3  
4 NodedSegmentString* new(SV*, Array coords) {
5 15 auto seq = Helper::convert_coords(coords);
6 15 ▶ auto v = new NodedSegmentString(seq.clone(), NULL);
Branch: 2 branches
BranchTrueFalseTotal
auto v = new NodedSegmentString(seq.clone(), NULL); 15 0 15
auto v = new NodedSegmentString(seq.clone(), NULL); 15 0 15
7 15 ▶ RETVAL = v;
Branch: 3 branches
BranchTrueFalseTotal
RETVAL = v; 15 0 15
RETVAL = v; 15 0 15
RETVAL = v; 0 0 0
8 15 ▶}
Branch: 1 branch
BranchTrueFalseTotal
} 15 0 15
9  
10 Sv NodedSegmentString::addIntersectionNode (Coordinate& c, std::size_t segmentIndex) {
11 3 ▶ auto* node = THIS->addIntersectionNode(&c, segmentIndex);
Branch: 1 branch
BranchTrueFalseTotal
auto* node = THIS->addIntersectionNode(&c, segmentIndex); 3 0 3
12 3 ▶ Sv wrapped = xs::out<SegmentNode*>(node);
Branch: 1 branch
BranchTrueFalseTotal
Sv wrapped = xs::out<SegmentNode*>(node); 3 0 3
13 3 ▶ Object obj{ST(0)};
Branch: 1 branch
BranchTrueFalseTotal
Object obj{ST(0)}; 3 0 3
14 3 ▶ wrapped.payload_attach(obj.detach(), &payload_marker);
Branch: 2 branches
BranchTrueFalseTotal
wrapped.payload_attach(obj.detach(), &payload_marker); 3 0 3
wrapped.payload_attach(obj.detach(), &payload_marker); 3 0 3
15 3 ▶ RETVAL = wrapped;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = wrapped; 3 0 3
16 }
17  
18 0 ▶int NodedSegmentString::getSegmentOctant (unsigned int index)
Branch: 1 branch
BranchTrueFalseTotal
int NodedSegmentString::getSegmentOctant (unsigned int index) 0 0 0
19  
20 void NodedSegmentString::addIntersections (LineIntersector& li, unsigned int segmentIndex, int geomIndex) {
21 1 THIS->addIntersections(&li, segmentIndex, geomIndex);
22 }
23  
24 void NodedSegmentString::addIntersection (Object arg1, unsigned int segmentIndex, SV* arg3 = NULL, SV* arg4 = NULL) {
25 2 ▶ if (!arg3) {
Branch: 1 branch
BranchTrueFalseTotal
if (!arg3) { 1 1 2
26 1 ▶ auto& c = xs::in<Coordinate&>(arg1);
Branch: 1 branch
BranchTrueFalseTotal
auto& c = xs::in<Coordinate&>(arg1); 1 0 1
27 1 ▶ THIS->addIntersection(c, segmentIndex);
Branch: 1 branch
BranchTrueFalseTotal
THIS->addIntersection(c, segmentIndex); 1 0 1
28 }
29 else {
30 1 ▶ auto& li = xs::in<LineIntersector&>(arg1);
Branch: 1 branch
BranchTrueFalseTotal
auto& li = xs::in<LineIntersector&>(arg1); 1 0 1
31 1 ▶ if (!arg3) throw("missing mandatory argument");
Branch: 1 branch
BranchTrueFalseTotal
if (!arg3) throw("missing mandatory argument"); 0 1 1
32 1 ▶ if (!arg4) throw("missing mandatory argument");
Branch: 1 branch
BranchTrueFalseTotal
if (!arg4) throw("missing mandatory argument"); 0 1 1
33 1 ▶ THIS->addIntersection(&li, segmentIndex, SvIV(arg3), SvIV(arg4));
Branch: 3 branches
BranchTrueFalseTotal
THIS->addIntersection(&li, segmentIndex, SvIV(arg3), SvIV(arg4)); 1 0 1
THIS->addIntersection(&li, segmentIndex, SvIV(arg3), SvIV(arg4)); 1 0 1
THIS->addIntersection(&li, segmentIndex, SvIV(arg3), SvIV(arg4)); 1 0 1
34 }
35 }
36  
37 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
38  
39 BOOT {
40 46 ▶ Stash(__PACKAGE__).inherit("Geo::Geos::Noding::SegmentString");
Branch: 2 branches
BranchTrueFalseTotal
Stash(__PACKAGE__).inherit("Geo::Geos::Noding::SegmentString"); 46 0 46
Stash(__PACKAGE__).inherit("Geo::Geos::Noding::SegmentString"); 46 0 46
41 }
« xsi/noding/SimpleSnapRounder.xsi ↑ Summary xsi/algorithm/MinimumDiameter.xsi »