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'}
206 1 2 if $opts{'filename'}
212 4 10 if (defined $opts{'ra'} and $opts{'ra'} =~ /([+-]?[0-9.]+)[ h]+([0-9.]+)[ m\x{2032}']+([0-9.]+)/)
215 5 9 if (defined $opts{'dec'} and $opts{'dec'} =~ /([+-]?[0-9.]+)[ d\260]+([0-9.]+)[ m\x{2032}']+([0-9.]+)/)
216 1 4 $1 < 0 ? :
227 4 4 if ($opts{'angular_size'} =~ /(\S+)\s*[,xX]\s*(\S+)/)
231 3 5 if ($opts{'pixel_size'} =~ /(\S+)\s*[,xX]\s*(\S+)/)
236 5 3 unless $opts{'angular_size_y'}
238 6 2 unless $opts{'pixel_size_y'}
252 3 2 if ($res->is_success) { }
254 2 1 if ($simbad =~ /\(ICRS,ep=J2000,eq=2000\): (\S+ \S+ \S+)\s+(\S+ \S+ \S+)/) { }
260 1 1 if ($simbad =~ /Angular size:\s*([0-9.]+)/)