File Coverage

xsi/noding/SegmentString.xsi
Criterion Covered Total %
statement 9 9 100.0
branch 10 20 50.0
condition n/a
subroutine n/a
pod n/a
total 19 29 65.5


line stmt bran cond sub pod time code
1             MODULE = Geo::Geos PACKAGE = Geo::Geos::Noding::SegmentString
2             PROTOTYPES: DISABLE
3              
4 2 50         unsigned int SegmentString::size ()
5              
6             Coordinate* SegmentString::getCoordinate (unsigned int i){
7 4           RETVAL = new Coordinate(THIS->getCoordinate(i));
8 2 50         }
    50          
9              
10             Array SegmentString::getCoordinates () {
11 3 50         auto seq = THIS->getCoordinates();
12 3 50         RETVAL = Helper::convert_copy(seq);
13             }
14              
15 2 50         bool SegmentString::isClosed()
16              
17             std::string SegmentString::toString(...) {
18 24 50         std::ostringstream out;
19 12 50         out << *THIS;
20 12 50         RETVAL = out.str();
    50          
21             }
22