Condition Coverage

blib/lib/ChordPro/Songbook.pm
Criterion Covered Total %
condition 13 32 40.6


and 3 conditions

line !l l&&!r l&&r condition
40 0 1 140 not defined $main::options->{'a2crd'} && !$main::options->{'a2crd'} || $main::options->{'fragment'} and &any(sub { /\S/; } , @$lines)
1 140 0 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)

or 2 conditions

line l !l condition
28 9 132 $opts //= {}
29 0 141 delete $opts->{'meta'} // {}
30 0 141 delete $opts->{'defs'} // {}
50 141 0 $opts //= {}

or 3 conditions

line l !l&&r !l&&!r condition
40 0 0 141 defined $main::options->{'a2crd'} && !$main::options->{'a2crd'} || $main::options->{'fragment'}
0 0 140 $main::options->{'crd'} || !&any(sub { /^{\s*\w+/; } , @$lines)
45 0 0 0 $main::options->{'a2crd'} || $main::options->{'crd'}
0 0 0 $main::options->{'verbose'} or not $main::options->{'a2crd'} || $main::options->{'crd'}
74 114 27 0 $songs or $main::running_under_test
96 0 0 0 $defs->{'title'} // $filename