Branch Coverage

xsi/Geometry.xsi
Criterion Covered Total %
branch 119 240 49.5


line true false branch
4 14 0 int Geometry::getSRID()
8 17 0 bool Geometry::isEmpty()
10 14 0 bool Geometry::isSimple()
12 6 0 bool Geometry::isRectangle()
14 6 0 bool Geometry::isValid()
16 15 0 size_t Geometry::getNumPoints()
18 9 0 int Geometry::getDimension()
20 15 0 int Geometry::getCoordinateDimension()
22 15 0 int Geometry::getBoundaryDimension()
24 11 0 int Geometry::getNumGeometries()
26 4 0 Sv Geometry::reverse() { RETVAL = Helper::uplift(THIS->reverse()); }
4 0 Sv Geometry::reverse() { RETVAL = Helper::uplift(THIS->reverse()); }
29 13 0 auto g = THIS->getGeometryN(n);
30 13 0 if (g) RETVAL = Helper::uplift(g->clone());
13 0 if (g) RETVAL = Helper::uplift(g->clone());
13 0 if (g) RETVAL = Helper::uplift(g->clone());
37 22 0
8 14
39 14 0 if (c) RETVAL = new Coordinate(*c);
40 14 0 else XSRETURN_UNDEF;
14 0 else XSRETURN_UNDEF;
43 14 0 std::string Geometry::getGeometryType()
14 0 std::string Geometry::getGeometryType()
45 32 0 int Geometry::getGeometryTypeId()
47 221 0 std::string Geometry::toString (...)
221 0 std::string Geometry::toString (...)
49 6 0 std::string Geometry::toText()
6 0 std::string Geometry::toText()
51 15 0 bool Geometry::equalsExact(Geometry& other, double tolerance = 0) { RETVAL = THIS->equalsExact(&other, tolerance); }
53 7 0 bool Geometry::equals(Geometry& other) { RETVAL = THIS->equals(&other); }
55 6 0 int Geometry::compareTo(Geometry& other) { RETVAL = THIS->compareTo(&other); }
57 7 0 Sv Geometry::getBoundary() { RETVAL = Helper::uplift(THIS->getBoundary()); }
7 0 Sv Geometry::getBoundary() { RETVAL = Helper::uplift(THIS->getBoundary()); }
59 8 0 double Geometry::getArea()
61 7 0 double Geometry::getLength()
63 7 0 double Geometry::distance(Geometry& g) { RETVAL = THIS->distance(&g); }
65 6 0 bool Geometry::isWithinDistance(Geometry& g, double distance) { RETVAL = THIS->isWithinDistance(&g, distance); }
68 7 0
70 6 0
71 6 0 Sv Geometry::symDifference(Geometry& other) { RETVAL = Helper::uplift(THIS->symDifference(&other)); }
6 0 Sv Geometry::symDifference(Geometry& other) { RETVAL = Helper::uplift(THIS->symDifference(&other)); }
73 7 0 Sv Geometry::difference(Geometry& other) { RETVAL = Helper::uplift(THIS->difference(&other)); }
7 0 Sv Geometry::difference(Geometry& other) { RETVAL = Helper::uplift(THIS->difference(&other)); }
75 6 0 Sv Geometry::Union(Geometry& other) { RETVAL = Helper::uplift(THIS->Union(&other)); }
6 0 Sv Geometry::Union(Geometry& other) { RETVAL = Helper::uplift(THIS->Union(&other)); }
77 6 0 Sv Geometry::intersection(Geometry& other) { RETVAL = Helper::uplift(THIS->intersection(&other)); }
6 0 Sv Geometry::intersection(Geometry& other) { RETVAL = Helper::uplift(THIS->intersection(&other)); }
79 6 0 Sv Geometry::convexHull() { RETVAL = Helper::uplift(THIS->convexHull()); }
6 0 Sv Geometry::convexHull() { RETVAL = Helper::uplift(THIS->convexHull()); }
83 6 12 if (!arg2) r = THIS->buffer(distance);
6 0 if (!arg2) r = THIS->buffer(distance);
85 12 0 int quadrantSegments = SvIV(arg2);
0 0 int quadrantSegments = SvIV(arg2);
86 6 6 if (arg3) {
87 6 0 int endCapStyle = SvIV(arg3);
0 0 int endCapStyle = SvIV(arg3);
88 6 0 r = THIS->buffer(distance, quadrantSegments, endCapStyle);
90 6 0 r = THIS->buffer(distance, quadrantSegments);
93 18 0 RETVAL = Helper::uplift(r);
96 6 0 bool Geometry::coveredBy(Geometry& other) { RETVAL = THIS->coveredBy(&other); }
98 6 0 bool Geometry::covers(Geometry& other) { RETVAL = THIS->covers(&other); }
100 6 0 bool Geometry::overlaps(Geometry& other) { RETVAL = THIS->overlaps(&other); }
102 6 0 bool Geometry::contains(Geometry& other) { RETVAL = THIS->contains(&other); }
104 6 0 bool Geometry::within(Geometry& other) { RETVAL = THIS->within(&other); }
106 6 0 bool Geometry::crosses(Geometry& other) { RETVAL = THIS->crosses(&other); }
108 6 0 bool Geometry::intersects(Geometry& other) { RETVAL = THIS->intersects(&other); }
110 6 0 bool Geometry::touches(Geometry& other) { RETVAL = THIS->touches(&other); }
112 6 0 bool Geometry::disjoint(Geometry& other) { RETVAL = THIS->disjoint(&other); }
114 6 0 Sv Geometry::getEnvelope() { RETVAL = Helper::uplift(THIS->getEnvelope()); }
6 0 Sv Geometry::getEnvelope() { RETVAL = Helper::uplift(THIS->getEnvelope()); }
116 7 0 Sv Geometry::clone() { RETVAL = Helper::uplift(THIS->clone()); }
7 0 Sv Geometry::clone() { RETVAL = Helper::uplift(THIS->clone()); }
120 6 0 RETVAL = new PrecisionModel(*pm);
121 6 0 }
6 0 }
124 7 0 auto seq = std::unique_ptr(THIS->getCoordinates());
7 0 auto seq = std::unique_ptr(THIS->getCoordinates());
125 7 0 RETVAL = Helper::convert_copy(seq.get());
129 6 6 if (!arg) RETVAL = xs::out(THIS->relate(&other));
6 0 if (!arg) RETVAL = xs::out(THIS->relate(&other));
6 0 if (!arg) RETVAL = xs::out(THIS->relate(&other));
131 6 0 std::string intersectionPattern { SvPV_nolen(arg) };
0 0 std::string intersectionPattern { SvPV_nolen(arg) };
6 0 std::string intersectionPattern { SvPV_nolen(arg) };
132 6 0 RETVAL = Simple(THIS->relate(&other, intersectionPattern));
6 0 RETVAL = Simple(THIS->relate(&other, intersectionPattern));
140 46 0 auto this_stash = Stash(__PACKAGE__);
141 46 0 xs::exp::create_constants(this_stash, {
46 0 xs::exp::create_constants(this_stash, {
46 0 xs::exp::create_constants(this_stash, {
46 0 xs::exp::create_constants(this_stash, {
46 0 xs::exp::create_constants(this_stash, {
46 0 xs::exp::create_constants(this_stash, {
46 0 xs::exp::create_constants(this_stash, {
46 0 xs::exp::create_constants(this_stash, {
46 0 xs::exp::create_constants(this_stash, {
46 0 xs::exp::create_constants(this_stash, {
46 0 xs::exp::create_constants(this_stash, {
46 0 xs::exp::create_constants(this_stash, {
506 46 xs::exp::create_constants(this_stash, {
0 0 xs::exp::create_constants(this_stash, {
154 46 0 });
155 46 0 xs::exp::autoexport(this_stash);
46 0 xs::exp::autoexport(this_stash);
157 46 0 Stash("Geo::Geos::GeometryCollection").inherit(__PACKAGE__);
46 0 Stash("Geo::Geos::GeometryCollection").inherit(__PACKAGE__);
159 46 0 Stash("Geo::Geos::Puntal", GV_ADD).mark_as_loaded("Geo::Geos");
46 0 Stash("Geo::Geos::Puntal", GV_ADD).mark_as_loaded("Geo::Geos");
160 46 0 Stash("Geo::Geos::Puntal").inherit(__PACKAGE__);
46 0 Stash("Geo::Geos::Puntal").inherit(__PACKAGE__);
162 46 0 Stash("Geo::Geos::Lineal", GV_ADD).mark_as_loaded("Geo::Geos");
46 0 Stash("Geo::Geos::Lineal", GV_ADD).mark_as_loaded("Geo::Geos");
163 46 0 Stash("Geo::Geos::Lineal").inherit(__PACKAGE__);
46 0 Stash("Geo::Geos::Lineal").inherit(__PACKAGE__);
165 46 0 Stash("Geo::Geos::Polygonal", GV_ADD).mark_as_loaded("Geo::Geos");
46 0 Stash("Geo::Geos::Polygonal", GV_ADD).mark_as_loaded("Geo::Geos");
166 46 0 Stash("Geo::Geos::Polygonal").inherit(__PACKAGE__);
46 0 Stash("Geo::Geos::Polygonal").inherit(__PACKAGE__);
172 0 0 RETVAL = Helper::uplift(THIS->clone());
0 0 RETVAL = Helper::uplift(THIS->clone());