File Coverage

xsi/WKBWriter.xsi
Criterion Covered Total %
statement 8 15 53.3
branch 10 26 38.4
condition n/a
subroutine n/a
pod n/a
total 18 41 43.9


line stmt bran cond sub pod time code
1             MODULE = Geo::Geos PACKAGE = Geo::Geos::WKBWriter
2             PROTOTYPES: DISABLE
3              
4             WKBWriter* new(SV*, int dims=2, int bo = getMachineByteOrder(), bool includeSRID=false) {
5 12           RETVAL = new WKBWriter(dims, bo, includeSRID);
6 6 50         }
    50          
7              
8 0 0         int WKBWriter::getOutputDimension()
9              
10 0           void WKBWriter::setOutputDimension(int newOutputDimension)
11              
12 0 0         int WKBWriter::getByteOrder()
13              
14 0           void WKBWriter::setByteOrder(int newByteOrder)
15              
16 0 0         int WKBWriter::getIncludeSRID()
17              
18 0           void WKBWriter::setIncludeSRID(int newIncludeSRID)
19              
20             std::string WKBWriter::write(Geometry& g) {
21 6 50         std::ostringstream out;
22 3 50         THIS->write(g, out);
23 3 50         RETVAL = out.str();
    50          
24             }
25              
26             std::string WKBWriter::writeHEX(Geometry& g) {
27 6 50         std::ostringstream out;
28 3 50         THIS->writeHEX(g, out);
29 3 50         RETVAL = out.str();
    50          
30             }
31              
32 0           int CLONE_SKIP (...) { PERL_UNUSED_VAR(items); RETVAL = 1; }