Branch Coverage

lib/Panotools/Script.pm
Criterion Covered Total %
branch 78 152 51.3


line true false branch
88 0 6 if ($path eq '-') { }
94 0 6 unless open FILE, '<', $path
106 6 361 if $line =~ /^m /
107 6 361 if $line =~ /^p /
108 5 362 if $line =~ /^#hugin_/
109 30 337 if $line =~ /^v /
110 25 342 if ($line =~ /^i /)
116 5 362 if ($line =~ /^o /)
122 205 162 if ($line =~ /^c /)
128 0 367 if ($line =~ /^C /)
134 25 342 if ($line =~ /^#-hugin /)
141 4 363 if ($line =~ /^k /)
167 3 4 if scalar @{$self->Output;}
170 0 7 if ($path eq '-') { }
176 0 7 unless open FILE, '>', $path
184 10 13 if defined $self->ImageMetadata->[$index]
185 23 0 if defined $self->Image->[$index]
292 2 443 if scalar @_
347 5 96 unless defined $self->Image->[$index]
348 100 1 unless defined $self->Image->[$index]{$entry} and $self->Image->[$index]{$entry} =~ /=/
361 9 519 unless defined $self->Output->[$index]
362 414 114 if (not $self->Image->[$index]{$entry} =~ /=/) { }
394 1 80 if (defined $$packed_seen{$packed}) { }
422 0 0 unless $threshold > 0
428 0 0 if ($$point{'t'} > 0 or $point->Distance($self) < $threshold) { }
462 0 7 unless $selection[$index] =~ /^[0-9]+$/
463 0 7 if $selection[$index] >= scalar @{$$self{'image'};}
466 0 2 unless scalar keys %{$mapping;} == scalar @selection
477 3 7 unless defined $$mapping{$index}
480 7 0 if defined $$self{'imagemetadata'}[$index]
489 84 126 if ($$image{$key} =~ /^=([0-9]+)$/)
494 85 65 if (scalar @{$$pto_out{'image'};} > 0 and $$image{$key} eq $$pto_out{'image'}[0]{$key} and $key =~ /^([abcdev]|R[abcde]|V[abcdxy])$/)
505 7 0 if defined $$self{'variable'}{$index}
513 33 47 unless defined $$mapping{$$control{'n'}}
514 7 40 unless defined $$mapping{$$control{'N'}}
525 1 1 unless defined $$mapping{$$mask{'i'}}
561 2 2 unless (defined $$mapping{$$image{'n'}})
572 2 2 if defined $self->Image->[$$mapping{$filename}]
574 2 0 if defined $b->ImageMetadata->[$index]
581 17 43 if ($$image{$key} =~ /^=([0-9]+)$/)
608 0 0 if $$self_mask{'i'} eq $$mask{'i'} and $$self_mask{'p'} eq $$mask{'p'}
610 0 0 if $jump
620 0 21 unless defined $self->Option->{$option}
643 0 0 unless $$point{'t'} == 0
649 0 0 unless $total
657 0 0 unless defined $min
658 0 0 if $min > $distance
659 0 0 unless defined $max
660 0 0 if $max < $distance
697 0 0 if $self->Sigma($param) < $sigma_old
699 0 0 if $self->Sigma($param) < $sigma_old
707 0 0 if ($param eq 'r')
715 0 0 if ($param eq 'p')
721 0 0 if ($param eq 'y')
783 0 0 if (_samestack($$self{'image'}[$base_image], $$self{'image'}[$image], $maxShift))
799 0 0 if abs $image0->y - $image1->y < $maxShift || abs $image0->y - $image1->y > $minShift and abs $image0->p - $image1->p < $maxShift
828 0 0 if (_samelayer($$self{'image'}[$base_image], $$self{'image'}[$image], $maxEVDiff))
843 0 0 if abs $$image0{'Eev'} - $$image1{'Eev'} < $maxEVDiff
860 0 12 unless scalar @{$self->Image;}
870 94 72 if $match
871 0 72 if grep /^$image$/, @{$$groups[$group_id];}
874 87 176 if $match
875 51 125 if (scalar $self->Connections($base_image, $image))
883 14 51 unless ($match)
910 536 7349 if $n == $a and $N == $b or $n == $b and $N == $a
933 0 0 if ($img->v($self) eq $$base_img{'v'} and $img->a($self) eq $$base_img{'a'} and $img->b($self) eq $$base_img{'b'} and $img->c($self) eq $$base_img{'c'} and $img->d($self) eq $$base_img{'d'} and $img->e($self) eq $$base_img{'e'} and $img->Ra($self) eq $$base_img{'Ra'} and $img->Rb($self) eq $$base_img{'Rb'} and $img->Rc($self) eq $$base_img{'Rc'} and $img->Rd($self) eq $$base_img{'Rd'} and $img->Re($self) eq $$base_img{'Re'} and $img->Va($self) eq $$base_img{'Va'} and $img->Vb($self) eq $$base_img{'Vb'} and $img->Vc($self) eq $$base_img{'Vc'} and $img->Vd($self) eq $$base_img{'Vd'} and $img->Vx($self) eq $$base_img{'Vx'} and $img->Vy($self) eq $$base_img{'Vy'})
993 0 0 if $found
995 0 0 unless defined $$img{'j'}
996 0 0 if ($$img{'j'} eq $$base_img{'j'})
1019 0 14 unless $_[0] =~ /^[0-9]+$/ and $_[1] =~ /^[0-9]+$/
1048 0 0 if $pix_radius > $pix_radius_max
1052 0 0 if $rad_fov == 0
1053 0 0 if ($self->Panorama->{'f'} == 0) { }
1055 0 0 if $self->Panorama->{'v'} >= 180
1098 0 0 if defined $pid_forward_old
1099 0 0 if defined $pid_reverse_old