xsi/WKTReader.xsi | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 6 | 6 | 100.0 |
branch | 8 | 14 | 57.1 |
condition | n/a | ||
subroutine | n/a | ||
pod | n/a | ||
total | 14 | 20 | 70.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | MODULE = Geo::Geos PACKAGE = Geo::Geos::WKTReader | ||||||
2 | PROTOTYPES: DISABLE | ||||||
3 | |||||||
4 | Sv read(std::string in, SV* geometry_factory = NULL) { | ||||||
5 | Geometry* g; | ||||||
6 | 2 | 100 | if (geometry_factory) { | ||||
7 | 2 | 50 | WKTReader r(xs::in |
||||
50 | |||||||
8 | 1 | 50 | g = r.read(in); | ||||
9 | } | ||||||
10 | else { | ||||||
11 | 2 | 50 | WKTReader r; | ||||
12 | 1 | 50 | g = r.read(in); | ||||
13 | } | ||||||
14 | 2 | 50 | RETVAL = Helper::uplift(g); | ||||
15 | } |