Branch Coverage

blib/lib/Geo/WKT/Simple.pm
Criterion Covered Total %
branch 19 22 86.3


line true false branch
54 1 5 unless my($data) = $_[0] =~ /^point\s*\((.+)\)$/i
61 1 5 unless my($data) = $_[0] =~ /^linestring\s*\((.+)\)$/i
68 1 5 unless my($data) = $_[0] =~ /^multilinestring\s*\(\s*\((.+)\)\s*\)$/i
75 2 5 unless my($data) = $_[0] =~ /^polygon\s*\(\s*\((.+)\)\s*\)$/i
82 0 4 unless my($data) = $_[0] =~ /^multipolygon\s*\(\s*\(\s*\((.+)\)\s*\)\s*\)$/i
90 0 3 unless my($wkt) = $_[0] =~ /^geometrycollection\s*\((.+)\)$/i
96 1 6 unless $wkt =~ s/^[^(]*\([^)]*\)//
101 6 4 if @open == @close
102 4 0 if $wkt =~ s/^[^\)]*\)//
116 1 12 unless $type =~ /^$ALLTYPES$/i
161 1 12 unless $type =~ /^$ALLTYPES$/i