Branch Coverage

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


line true false branch
106 79 1 unless defined $self->[$index]{'exif'}{'ExposureMode'}
107 1 0 if $self->[$index]{'exif'}{'ExposureMode'} eq 'Auto'
111 2 7 if scalar(@{$self;}) % $brackets
113 0 7 if $brackets < 2
117 4 30 unless $self->[$index]{'exif'}{'ExposureTime'} eq $$self[$index - $brackets]{'exif'}{'ExposureTime'}
141 1 4 if $self->Bracketed
144 0 4 if ($longest =~ m[^1/([0-9]+)$])
145 4 0 if ($shortest =~ m[^1/([0-9]+)$])
146 0 4 unless $longest or $shortest
147 0 4 if $shortest == 0
148 1 3 if $longest / $shortest < $factor
175 73 32 if ($number =~ m[^1/([0-9]+)$])
207 6 20 unless defined $previous_time
210 5 21 if ($inc - $previous_inc > $d_inc)
212 5 0 if $group_tmp->AverageInterval < $max_inc
220 6 0 if $group_tmp->AverageInterval < $max_inc
235 6 5 unless scalar @{$self;} > 1
262 2 2 if @_
264 3 1 if defined $fov
272 0 0 if @_
274 0 0 if defined $fl
283 0 0 unless $rotation
284 0 0 if $rotation =~ /Mirror/
286 0 0 if $self->[$index]{'exif'}{'ImageWidth'} < $self->[$index]{'exif'}{'ImageHeight'}
287 0 0 if $rotation =~ /Rotate 90 CW/
288 0 0 if $rotation =~ /Rotate 180/
289 0 0 if $rotation =~ /Rotate 270 CW/
319 0 0 if ($et =~ m[^1/([0-9]+)$])
344 22 2 unless $image->{'exif'}{'RedBalance'} and $image->{'exif'}{'BlueBalance'}
346 2 0 if defined $image->{'exif'}{'GreenBalance'}
350 2 1 unless $count