Branch Coverage

blib/lib/Music/FretboardDiagram.pm
Criterion Covered Total %
branch 28 84 33.3


line true false branch
140 5 0 unless ref $self->chord
143 1 4 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) { }
500 12 4 if ($posn) { }
512 0 0 unless $img->write("type", $self->type, "file", $name)
518 4 33 unless $arg =~ /^[1-9]\d*$/
523 4 36 unless $arg =~ /^[10]$/
532 0 3 if length $spec != $self->strings
538 8 10 if ($n eq "x" or $n eq "X")
543 4 6 if ($n =~ /[oO0]/) { }