Branch Coverage

blib/lib/ChordPro/Songbook.pm
Criterion Covered Total %
branch 11 20 55.0


line true false branch
33 0 141 if ($filename =~ /\.pdf$/i)
40 0 140 if (not defined $main::options->{'a2crd'} && !$main::options->{'a2crd'} || $main::options->{'fragment'} and &any(sub { /\S/; } , @$lines) and $main::options->{'crd'} || !&any(sub { /^{\s*\w+/; } , @$lines))
45 0 0 if $main::options->{'verbose'} or not $main::options->{'a2crd'} || $main::options->{'crd'}
54 273 9 unless exists $opts->{$_}
58 281 1 unless exists $opts->{$_}
61 39 102 if ref $main::config eq "HASH"
71 143 26 if $song->{'body'}
74 0 27 unless $songs or $main::running_under_test
83 0 0 unless (-s -r $filename)
100 0 0 if $main::config->{'debug'}{'song'}