Branch Coverage

lib/Panotools/Photos.pm
Criterion Covered Total %
branch 35 62 56.4


line true false branch
104 79 1 unless defined $$self[$index]{'exif'}{'ExposureMode'}
105 1 0 if $$self[$index]{'exif'}{'ExposureMode'} eq 'Auto'
109 2 7 if scalar(@{$self;}) % $brackets
111 0 7 if $brackets < 2
115 4 30 unless $$self[$index]{'exif'}{'ExposureTime'} eq $$self[$index - $brackets]{'exif'}{'ExposureTime'}
139 1 4 if $self->Bracketed
142 0 4 if ($longest =~ m[^1/([0-9]+)$])
143 4 0 if ($shortest =~ m[^1/([0-9]+)$])
144 0 4 unless $longest or $shortest
145 0 4 if $shortest == 0
146 1 3 if $longest / $shortest < $factor
173 77 36 if ($number =~ m[^1/([0-9]+)$])
205 6 20 unless defined $previous_time
208 5 21 if ($inc - $previous_inc > $d_inc)
210 5 0 if $group_tmp->AverageInterval < $max_inc
218 6 0 if $group_tmp->AverageInterval < $max_inc
233 6 5 unless scalar @{$self;} > 1
260 2 2 if @_
262 3 1 if defined $fov
270 0 0 if @_
272 0 0 if defined $fl
281 0 0 unless $rotation
282 0 0 if $rotation =~ /Mirror/
283 0 0 if $$self[$index]{'exif'}{'ImageWidth'} < $$self[$index]{'exif'}{'ImageHeight'}
285 0 0 if $rotation =~ /Rotate 90 CW/
286 0 0 if $rotation =~ /Rotate 180/
287 0 0 if $rotation =~ /Rotate 270 CW/
317 0 0 if ($et =~ m[^1/([0-9]+)$])
332 22 2 unless $$image{'exif'}{'RedBalance'} and $$image{'exif'}{'BlueBalance'}
334 2 0 if defined $$image{'exif'}{'GreenBalance'}
338 2 1 unless $count