Branch Coverage

xsi/IntersectionMatrix.xsi
Criterion Covered Total %
branch 45 102 44.1


line true false branch
6 1 2 else {
1 0 else {
1 0 else {
8 2 0 RETVAL = new IntersectionMatrix(elements);
0 0 RETVAL = new IntersectionMatrix(elements);
2 0 RETVAL = new IntersectionMatrix(elements);
9 2 0 }
2 0 }
12 1 0 bool IntersectionMatrix::matches (std::string requiredDimensionSymbols)
17 0 2 if(!arg1) throw("undef not allowed");
18 1 1 if (!arg2) {
19 1 0 std::string dimensionSymbols { SvPV_nolen(arg1) };
0 0 std::string dimensionSymbols { SvPV_nolen(arg1) };
1 0 std::string dimensionSymbols { SvPV_nolen(arg1) };
20 1 0 THIS->set(dimensionSymbols);
22 0 1 if(!arg3) throw("undef not allowed");
23 1 0 int row = SvIV(arg1);
0 0 int row = SvIV(arg1);
24 1 0 int col = SvIV(arg2);
0 0 int col = SvIV(arg2);
25 1 0 int val = SvIV(arg3);
0 0 int val = SvIV(arg3);
26 1 0 THIS->set(row, col, val);
31 0 2 if(!arg1) throw("undef not allowed");
32 1 1 if (!arg2) {
33 1 0 std::string dimensionSymbols { SvPV_nolen(arg1) };
0 0 std::string dimensionSymbols { SvPV_nolen(arg1) };
1 0 std::string dimensionSymbols { SvPV_nolen(arg1) };
34 1 0 THIS->setAtLeast(dimensionSymbols);
1 0 THIS->setAtLeast(dimensionSymbols);
36 0 1 if(!arg3) throw("undef not allowed");
37 1 0 int row = SvIV(arg1);
0 0 int row = SvIV(arg1);
38 1 0 int col = SvIV(arg2);
0 0 int col = SvIV(arg2);
39 1 0 int val = SvIV(arg3);
0 0 int val = SvIV(arg3);
40 1 0 THIS->setAtLeast(row, col, val);
48 1 0 int IntersectionMatrix::get(int row, int col)
50 1 0 bool IntersectionMatrix::isDisjoint()
52 1 0 bool IntersectionMatrix::isIntersects()
54 1 0 bool IntersectionMatrix::isWithin()
56 1 0 bool IntersectionMatrix::isContains()
58 1 0 bool IntersectionMatrix::isCovers()
60 1 0 bool IntersectionMatrix::isCoveredBy()
62 1 0 bool IntersectionMatrix::isTouches (int dimensionOfGeometryA, int dimensionOfGeometryB)
64 1 0 bool IntersectionMatrix::isCrosses (int dimensionOfGeometryA, int dimensionOfGeometryB)
66 1 0 bool IntersectionMatrix::isEquals (int dimensionOfGeometryA, int dimensionOfGeometryB)
68 1 0 bool IntersectionMatrix::isOverlaps (int dimensionOfGeometryA, int dimensionOfGeometryB)
73 20 0 std::string IntersectionMatrix::toString (...)
20 0 std::string IntersectionMatrix::toString (...)