| 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
| Branch | True | False | Total |
| char c = Dimension::toDimensionSymbol(value); |
6 |
1 |
7 |
|
| 6 |
6 |
▶ | RETVAL = c; |
Branch: 1 branch
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| if (value.size() != 1) throw "string of one char is expected"; |
1 |
7 |
8 |
|
| 11 |
7 |
▶ | RETVAL = Dimension::toDimensionValue(value[0]); |
Branch: 3 branches
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| auto this_stash = Stash(__PACKAGE__); |
46 |
0 |
46 |
|
| 16 |
322 |
▶ | xs::exp::create_constants(this_stash, { |
Branch: 4 branches
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| xs::exp::autoexport(this_stash); |
46 |
0 |
46 |
| xs::exp::autoexport(this_stash); |
46 |
0 |
46 |
|
| 25 |
46 |
| } |