Branch Coverage

blib/lib/ChordPro/Utils.pm
Criterion Covered Total %
branch 20 52 38.4


line true false branch
14 0 79 $^O =~ /MSWin|Windows_NT/i ? :
23 79 0 $] >= 5.016 ? :
28 0 79 $^O =~ /\A(?:MSWin32|VMS|os2|dos|riscos)\z/ ? :
38 0 368 unless defined $dir
39 368 0 unless $dir =~ /^~/
45 0 0 unless defined $first
55 0 0 if GLOB_ERROR()
57 0 0 if not defined $expanded or $expanded eq $first
81 0 0 if (-f -x $try)
95 0 0 if $main::options->{'trace'}
98 0 0 if $res
108 0 169 unless $prp
117 0 0 if $_->{'select'}
118 0 0 if ($_->{'pattern'}) { }
127 0 507 if ($code)
130 0 0 if $@
150 14 8 if (/^(.*?)=(.+)/) { }
2 6 elsif (/^no[-_]?(.+)/) { }
170 0 449 if not defined $arg or $arg eq ""
171 13 436 if $arg =~ /^(false|null|no|none|off|\s+|0)$/i
180 0 9 unless defined $arg
203 8 3 unless /[\\\s]/
229 0 10 if ($lk =~ /^\d+$/ and ref $o eq 'ARRAY') { }
230 0 0 unless (ref $$c eq "ARRAY")
262 0 46 if (defined $_[0] and defined $_[1]) { }
266 46 0 scalar @_ > 1 ? :