xsi/index/MonotoneChainOverlapAction.xsi

filter: Statementstmt 90.4% 19 / 21 Branchbran 46.1% 24 / 52 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 58.9% 43 / 73 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« xsi/triangulate/VoronoiDiagramBuilder.xsi ↑ Summary xsi/noding/IntersectionAdder.xsi »
1 MODULE = Geo::Geos PACKAGE = Geo::Geos::Index::MonotoneChainOverlapAction
2 PROTOTYPES: DISABLE
3  
4 1 MonotoneChainOverlapAction* new(SV*)
5 1 ▶ 
Branch: 4 branches
BranchTrueFalseTotal
1 0 1
1 0 1
1 0 1
0 0 0
6 void MonotoneChainOverlapAction::overlap(Object arg1, SV* arg2, SV* arg3 = NULL, SV* arg4 = NULL) {
7 2 ▶ if (arg1.stash().name() == "Geo::Geos::LineSegment") {
Branch: 4 branches
BranchTrueFalseTotal
if (arg1.stash().name() == "Geo::Geos::LineSegment") { 2 0 2
if (arg1.stash().name() == "Geo::Geos::LineSegment") { 2 0 2
if (arg1.stash().name() == "Geo::Geos::LineSegment") { 2 0 2
if (arg1.stash().name() == "Geo::Geos::LineSegment") { 1 1 2
8 1 ▶ auto& ls1 = xs::in<LineSegment&>(arg1);
Branch: 1 branch
BranchTrueFalseTotal
auto& ls1 = xs::in<LineSegment&>(arg1); 1 0 1
9 1 ▶ auto& ls2 = xs::in<LineSegment&>(arg2);
Branch: 1 branch
BranchTrueFalseTotal
auto& ls2 = xs::in<LineSegment&>(arg2); 1 0 1
10 1 ▶ THIS->overlap(ls1, ls2);
Branch: 1 branch
BranchTrueFalseTotal
THIS->overlap(ls1, ls2); 1 0 1
11 }
12 else {
13 1 ▶ if(!arg2) throw("undef not allowed");
Branch: 1 branch
BranchTrueFalseTotal
if(!arg2) throw("undef not allowed"); 0 1 1
14 1 ▶ if(!arg4) throw("undef not allowed");
Branch: 1 branch
BranchTrueFalseTotal
if(!arg4) throw("undef not allowed"); 0 1 1
15 1 ▶ auto& mc1 = xs::in<MonotoneChain&>(arg1);
Branch: 1 branch
BranchTrueFalseTotal
auto& mc1 = xs::in<MonotoneChain&>(arg1); 1 0 1
16 1 ▶ auto& mc2 = xs::in<MonotoneChain&>(arg3);
Branch: 1 branch
BranchTrueFalseTotal
auto& mc2 = xs::in<MonotoneChain&>(arg3); 1 0 1
17 1 ▶ std::size_t start1 = SvUV(arg2);
Branch: 1 branch
BranchTrueFalseTotal
std::size_t start1 = SvUV(arg2); 1 0 1
18 1 ▶ std::size_t start2 = SvUV(arg4);
Branch: 1 branch
BranchTrueFalseTotal
std::size_t start2 = SvUV(arg4); 1 0 1
19 1 ▶ THIS->overlap(mc1, start1, mc2, start2);
Branch: 1 branch
BranchTrueFalseTotal
THIS->overlap(mc1, start1, mc2, start2); 1 0 1
20 }
21 }
22  
23 Envelope* MonotoneChainOverlapAction::tempEnv1(SV* newval = NULL) : ALIAS(tempEnv2=1) {
24 4 Envelope* val;
25 switch (ix) {
26 4 ▶ case 0: val = &THIS->tempEnv1; break;
Branch: 1 branch
BranchTrueFalseTotal
case 0: val = &THIS->tempEnv1; break; 2 2 4
27 2 default: val = &THIS->tempEnv2; break;
28 2 }
29 if (newval) {
30 4 ▶ auto e = xs::in<Envelope*>(newval);
Branch: 1 branch
BranchTrueFalseTotal
auto e = xs::in<Envelope*>(newval); 0 4 4
31 0 ▶ *val = *e;
Branch: 1 branch
BranchTrueFalseTotal
*val = *e; 0 0 0
32 0 ▶ }
Branch: 1 branch
BranchTrueFalseTotal
} 0 0 0
33 RETVAL = new Envelope(*val);
34 4 ▶}
Branch: 4 branches
BranchTrueFalseTotal
} 4 0 4
} 4 0 4
} 4 0 4
} 0 0 0
35  
« xsi/triangulate/VoronoiDiagramBuilder.xsi ↑ Summary xsi/noding/IntersectionAdder.xsi »