blib/lib/ChordPro.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 25 | 110 | 22.7 |
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 |
212 | 0 | 0 | 0 | $c =~ /^(.[b#]?)/u and $1 ne $prev |
232 | 0 | 0 | 0 | @{$s->{'songs'};} == 1 and not exists $s->{'songs'}[0]{'body'} |
259 | 0 | 8 | 71 | $res and @$res > 0 |
260 | 0 | 0 | 71 | $of and $of ne "-" |
712 | 91 | 0 | 0 | $ENV{'XDG_CONFIG_HOME'} and -d $ENV{'XDG_CONFIG_HOME'} |
0 | 0 | 91 | $ENV{'HOME'} and -d $ENV{'HOME'} |
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" |
1125 | 0 | 0 | $Image::Magick::VERSION || $Image::Magick::Q16::VERSION || $Image::Magick::Q8::VERSION || '6.x?' |
1146 | 0 | 0 | $configs{$_} || 'no default' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
137 | 0 | 0 | 0 | @ARGV > 1 or $main::options->{'dump-chords'} and not @ARGV |
715 | 0 | 0 | 0 | $ENV{'CHORDPRO_LIB'} ||= "File::Spec"->catfile($ENV{'XDG_CONFIG_HOME'}, $app_lc) |
722 | 0 | 0 | 0 | $ENV{'CHORDPRO_LIB'} ||= "File::Spec"->catfile($dir, $app_lc) |
728 | 72 | 19 | 0 | $ENV{'CHORDPRO_LIB'} ||= $dir |
891 | 0 | 0 | 91 | $clo->{'trace'} ||= $clo->{'debug'} |
892 | 0 | 0 | 91 | $clo->{'verbose'} ||= $clo->{'trace'} |
909 | 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 | |
910 | 0 | 0 | 91 | $manual or $help |
955 | 0 | 91 | 0 | $clo->{'nosongconfig'} ||= $clo->{'nodefaultconfigs'} |
973 | 0 | 0 | 91 | $defcfg or $fincfg |
0 | 0 | 91 | $defcfg or $fincfg or $deltacfg | |
976 | 0 | 0 | 0 | $fincfg or $deltacfg |
1001 | 0 | 0 | 0 | $options->{'front-matter'} //= $files[0] |
1005 | 0 | 0 | 0 | $options->{'back-matter'} //= $files[-1] |
1015 | 0 | 0 | 91 | $main::__EMBEDDED__ or $clo->{'dump-chords'} |
0 | 91 | 0 | $main::__EMBEDDED__ or $clo->{'dump-chords'} or @ARGV |