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             (void)THIS;
14 2 50         Object me{ST(0)};
    50          
15 1           auto payload = me.payload(&payload_marker);
16 2 50         Object obj { payload.obj };
    50          
17 1 50         RETVAL = obj.ref();
    50          
18             }
19              
20 1           void SimpleGeometryPrecisionReducer::setRemoveCollapsedComponents(bool nRemoveCollapsed)
21              
22 1 50         bool SimpleGeometryPrecisionReducer::getRemoveCollapsed ()
23              
24             Sv SimpleGeometryPrecisionReducer::reduce(Geometry& g) {
25 1 50         RETVAL = Helper::uplift(THIS->reduce(&g));
    50          
26             }
27              
28 0           int CLONE_SKIP (...) { PERL_UNUSED_VAR(items); RETVAL = 1; }