Condition Coverage

lib/ChordPro.pm
Criterion Covered Total %
condition 26 110 23.6


and 3 conditions

line !l l&&!r l&&r condition
101 0 0 91 defined $of and $of ne ""
137 0 0 0 $main::options->{'dump-chords'} and not @ARGV
157 91 0 0 $main::options->{'verbose'} and $pkg->can("version")
186 0 0 0 &Getopt::Long::GetOptionsFromArray(\@w, "config=s\@", \@cfg, "meta=s%", \%meta, "define=s%", \%defs) and @w == 1
214 0 0 0 $c =~ /^(.[b#]?)/u and $1 ne $prev
234 0 0 0 @{$s->{'songs'};} == 1 and not exists $s->{'songs'}[0]{'body'}
261 0 8 71 $res and @$res > 0
262 0 0 71 $of and $of ne "-"
714 91 0 0 $ENV{'XDG_CONFIG_HOME'} and -d $ENV{'XDG_CONFIG_HOME'}
0 0 91 $ENV{'HOME'} and -d $ENV{'HOME'}

or 2 conditions

line l !l condition
103 0 8 $main::options->{'generate'} ||= "PDF"
106 0 0 $main::options->{'generate'} ||= "LilyPond"
109 0 0 $main::options->{'generate'} ||= "LaTeX"
112 0 6 $main::options->{'generate'} ||= "ChordPro"
115 0 0 $main::options->{'generate'} ||= "ChordPro"
119 0 9 $main::options->{'generate'} ||= "Text"
122 0 3 $main::options->{'generate'} ||= "HTML"
125 0 0 $main::options->{'generate'} ||= "MMA"
128 0 0 $main::options->{'generate'} ||= "Markdown"
131 0 0 $main::options->{'generate'} ||= "Debug"
152 91 0 $main::options->{'generate'} ||= "PDF"
1055 8 0 shift() // "normal"
1164 0 0 $configs{$_} || 'no default'

or 3 conditions

line l !l&&r !l&&!r condition
137 0 0 0 @ARGV > 1 or $main::options->{'dump-chords'} and not @ARGV
717 0 0 0 $ENV{'CHORDPRO_LIB'} ||= "File::Spec"->catfile($ENV{'XDG_CONFIG_HOME'}, $app_lc)
724 0 0 0 $ENV{'CHORDPRO_LIB'} ||= "File::Spec"->catfile($dir, $app_lc)
730 72 19 0 $ENV{'CHORDPRO_LIB'} ||= $dir
893 0 0 91 $clo->{'trace'} ||= $clo->{'debug'}
894 0 0 91 $clo->{'verbose'} ||= $clo->{'trace'}
911 0 0 91 $ident or $clo->{'verbose'}
0 0 91 $ident or $clo->{'verbose'} or $help
0 0 91 $ident or $clo->{'verbose'} or $help or $manual
912 0 0 91 $manual or $help
957 0 91 0 $clo->{'nosongconfig'} ||= $clo->{'nodefaultconfigs'}
975 0 0 91 $defcfg or $fincfg
0 0 91 $defcfg or $fincfg or $deltacfg
978 0 0 0 $fincfg or $deltacfg
1003 0 0 0 $options->{'front-matter'} //= $files[0]
1007 0 0 0 $options->{'back-matter'} //= $files[-1]
1017 0 0 91 $main::__EMBEDDED__ or $clo->{'dump-chords'}
0 91 0 $main::__EMBEDDED__ or $clo->{'dump-chords'} or @ARGV