Branch Coverage

blib/lib/Astro/DSS/JPEG.pm
Criterion Covered Total %
branch 28 28 100.0


line true false branch
174 3 2 if ($opts{'target'} and not defined $opts{'ra'} && defined $opts{'dec'})
183 2 1 if ($res->is_success) { }
184 1 1 if $opts{'filename'}
205 1 2 if $opts{'filename'}
211 4 10 if (defined $opts{'ra'} and $opts{'ra'} =~ /([+-]?[0-9.]+)[ h]+([0-9.]+)[ m\x{2032}']+([0-9.]+)/)
214 5 9 if (defined $opts{'dec'} and $opts{'dec'} =~ /([+-]?[0-9.]+)[ d\260]+([0-9.]+)[ m\x{2032}']+([0-9.]+)/)
215 1 4 $1 < 0 ? :
226 4 4 if ($opts{'angular_size'} =~ /(\S+)\s*[,xX]\s*(\S+)/)
230 3 5 if ($opts{'pixel_size'} =~ /(\S+)\s*[,xX]\s*(\S+)/)
235 5 3 unless $opts{'angular_size_y'}
237 6 2 unless $opts{'pixel_size_y'}
251 3 2 if ($res->is_success) { }
253 2 1 if ($simbad =~ /\(ICRS,ep=J2000,eq=2000\): (\S+ \S+ \S+)\s+(\S+ \S+ \S+)/) { }
259 1 1 if ($simbad =~ /Angular size:\s*([0-9.]+)/)