Branch Coverage

lib/ChordPro/Songbook.pm
Criterion Covered Total %
branch 18 30 60.0


line true false branch
40 0 186 if ($filename =~ /\.pdf$/i)
46 16 170 is_arrayref($filename) ? :
48 0 186 if $opts->{'error'}
51 0 185 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))
56 0 0 if $main::options->{'verbose'} or not $main::options->{'a2crd'} || $main::options->{'crd'}
65 363 9 unless exists $opts->{$_}
69 371 1 unless exists $opts->{$_}
72 0 186 if is_plain_hashref($main::config)
90 4 210 if ($song->{'assets'})
93 5 2 unless $v->{'opts'} and $v->{'opts'}{'persist'}
99 16 170 if (@{$self->{'songs'};} > 1)
101 0 16 unless ($song->{'body'} and &any(sub { $_->{'type'} ne "ignore"; } , @{$$song{"body"};}))
108 0 1 unless $songs or $main::running_under_test
123 0 0 unless (fs_test("sr", $filename))
140 0 0 if $main::config->{'debug'}{'song'}