Branch Coverage

blib/lib/Music/FretboardDiagram.pm
Criterion Covered Total %
branch 21 76 27.6


line true false branch
140 4 0 unless ref $self->chord
143 1 3 if $self->chord and length $self->chord->[0][1] != $self->strings
166 0 1 if ($self->horiz)
182 0 1 if (-e $self->font) { }
202 1 5 if ($fret == 1)
214 2 4 if ($self->_fret_match($fret))
215 2 0 if $SPACE + $fret * $SPACE + $SPACE / 2 < $SPACE * $frets
245 0 6 if ($note =~ /-/)
250 6 0 if ($note =~ /[xX]/) { }
0 0 elsif ($note =~ /[oO0]/) { }
251 0 6 if $self->verbose
267 0 0 if $self->verbose
283 0 0 if $self->verbose
285 0 0 $self->absolute ? :
289 0 0 if $y >= $SPACE and $y <= $SPACE * $frets
302 1 0 if ($self->showname)
303 1 0 $self->showname eq '1' ? :
304 0 1 if $self->verbose
317 1 0 if ($self->image) { }
340 0 0 if (-e $self->font) { }
360 0 0 if ($fret == 1)
372 0 0 if ($self->_fret_match($fret))
373 0 0 if $SPACE + $fret * $SPACE + $SPACE / 2 < $SPACE * $frets
403 0 0 if ($note =~ /-/)
408 0 0 if ($note =~ /[xX]/) { }
0 0 elsif ($note =~ /[oO0]/) { }
409 0 0 if $self->verbose
425 0 0 if $self->verbose
441 0 0 if $self->verbose
443 0 0 $self->absolute ? :
447 0 0 if $x >= $SPACE and $x <= $SPACE * $frets
460 0 0 if ($self->showname)
461 0 0 $self->showname eq '1' ? :
462 0 0 if $self->verbose
475 0 0 if ($self->image) { }
505 0 0 unless $img->write("type", $self->type, "file", $name)
511 4 30 unless $arg =~ /^[1-9]\d*$/
516 4 32 unless $arg =~ /^[10]$/