File Coverage

xsi/precision/SimpleGeometryPrecisionReducer.xsi
Criterion Covered Total %
statement 12 13 92.3
branch 18 36 50.0
condition n/a
subroutine n/a
pod n/a
total 30 49 61.2


line stmt bran cond sub pod time code
1             MODULE = Geo::Geos PACKAGE = Geo::Geos::Precision::SimpleGeometryPrecisionReducer
2             PROTOTYPES: DISABLE
3              
4             Sv new(SV*, SV* arg) {
5 1 50         PrecisionModel& pm = xs::in(arg);
6 1 50         auto self = new SimpleGeometryPrecisionReducer(&pm);
    50          
7 2 50         Object wrapped = xs::out(self);
    50          
    50          
8 1 50         wrapped.payload_attach(SvRV(arg), &payload_marker);
9 1 50         RETVAL = wrapped.ref();
    50          
10             }
11              
12             Sv SimpleGeometryPrecisionReducer::getPrecisionModel() {
13 2 50         Object me{ST(0)};
    50          
14 1           auto payload = me.payload(&payload_marker);
15 2 50         Object obj { payload.obj };
    50          
16 1 50         RETVAL = obj.ref();
    50          
17             }
18              
19 1           void SimpleGeometryPrecisionReducer::setRemoveCollapsedComponents(bool nRemoveCollapsed)
20              
21 1 50         bool SimpleGeometryPrecisionReducer::getRemoveCollapsed ()
22              
23             Sv SimpleGeometryPrecisionReducer::reduce(Geometry& g) {
24 1 50         RETVAL = Helper::uplift(THIS->reduce(&g));
    50          
25             }
26              
27 0           int CLONE_SKIP (...) { PERL_UNUSED_VAR(items); RETVAL = 1; }