xsi/Dimension.xsi

filter: Statementstmt 100% 8 / 8 Branchbran 61.5% 16 / 26 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 70.5% 24 / 34 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« xsi/noding/Noder.xsi ↑ Summary xsi/PrepGeometryFactory.xsi »
1 MODULE = Geo::Geos PACKAGE = Geo::Geos::Dimension
2 PROTOTYPES: DISABLE
3  
4 string toDimensionSymbol(int value) {
5 7 ▶ char c = Dimension::toDimensionSymbol(value);
Branch: 1 branch
BranchTrueFalseTotal
char c = Dimension::toDimensionSymbol(value); 6 1 7
6 6 ▶ RETVAL = c;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = c; 6 0 6
7 }
8  
9 int toDimensionValue(string value) {
10 8 ▶ if (value.size() != 1) throw "string of one char is expected";
Branch: 1 branch
BranchTrueFalseTotal
if (value.size() != 1) throw "string of one char is expected"; 1 7 8
11 7 ▶ RETVAL = Dimension::toDimensionValue(value[0]);
Branch: 3 branches
BranchTrueFalseTotal
RETVAL = Dimension::toDimensionValue(value[0]); 7 0 7
RETVAL = Dimension::toDimensionValue(value[0]); 6 1 7
RETVAL = Dimension::toDimensionValue(value[0]); 0 6 6
12 }
13  
14 BOOT {
15 46 ▶ auto this_stash = Stash(__PACKAGE__);
Branch: 1 branch
BranchTrueFalseTotal
auto this_stash = Stash(__PACKAGE__); 46 0 46
16 322 ▶ xs::exp::create_constants(this_stash, {
Branch: 4 branches
BranchTrueFalseTotal
xs::exp::create_constants(this_stash, { 46 0 46
xs::exp::create_constants(this_stash, { 46 0 46
xs::exp::create_constants(this_stash, { 276 46 322
xs::exp::create_constants(this_stash, { 0 0 0
17 {"TYPE_DONTCARE", Dimension::DimensionType::DONTCARE},
18 {"TYPE_True", Dimension::DimensionType::True},
19 {"TYPE_False", Dimension::DimensionType::False},
20 {"TYPE_P", Dimension::DimensionType::P},
21 {"TYPE_L", Dimension::DimensionType::L},
22 {"TYPE_A", Dimension::DimensionType::A}
23 });
24 46 ▶ xs::exp::autoexport(this_stash);
Branch: 2 branches
BranchTrueFalseTotal
xs::exp::autoexport(this_stash); 46 0 46
xs::exp::autoexport(this_stash); 46 0 46
25 46 }
« xsi/noding/Noder.xsi ↑ Summary xsi/PrepGeometryFactory.xsi »