Branch Coverage

blib/lib/CAD/Mesh3D/STL.pm
Criterion Covered Total %
branch 30 30 100.0


line true false branch
127 1 15 unless $_
128 1 14 if /^STDOUT$/i
129 1 14 if /^STDERR$/i
130 3 12 if ('GLOB' ne ref $_)
131 2 1 unless $fn =~ /\.stl$/i
132 1 2 unless open my $tfh, '>', $fn
140 3 11 if /^(?:ASC(?:|II)|true)$/i
141 3 11 if /^(?:bin(?:|ary)|false)$/i
142 1 13 if $_ and /\D/
144 8 5 unless $asc
152 5 8 if ($asc) { }
159 2 11 if $doClose
206 4 2 if (not defined $asc_or_bin or '' eq $asc_or_bin) { }
1 1 elsif ($asc_or_bin =~ /(asc(?:ii)?|bin(?:ary)?)/i) { }
213 2 2 unless defined $size