Branch Coverage

lib/ChordPro/Utils.pm
Criterion Covered Total %
branch 20 58 34.4


line true false branch
16 0 81 $^O =~ /MSWin|Windows_NT/iu ? :
30 0 81 $^O =~ /\A(?:MSWin32|VMS|os2|dos|riscos)\z/u ? :
39 0 408 unless defined $dir
40 408 0 unless $dir =~ /^~/u
46 0 0 unless defined $first
56 0 0 if GLOB_ERROR()
58 0 0 if not defined $expanded or $expanded eq $first
81 0 0 if (-f -x $try)
87 0 0 unless $silent
94 0 0 if $main::options->{'trace'}
97 0 0 if $res
106 0 170 unless $prp
115 0 0 if $_->{'select'}
116 0 0 if ($_->{'pattern'}) { }
125 0 510 if ($code)
128 0 0 if $@
142 0 6 if (is_macos())
152 14 8 if (/^(.*?)=(.+)/u) { }
2 6 elsif (/^no[-_]?(.+)/u) { }
171 0 449 if not defined $arg or $arg eq ""
172 13 436 if $arg =~ /^(false|null|no|none|off|\s+|0)$/iu
180 0 9 unless defined $arg
201 2 9 unless /[\\\s]/u or $force
226 0 10 if ($lk =~ /^\d+$/u and ref $o eq 'ARRAY') { }
227 0 0 unless (ref $$c eq "ARRAY")
257 0 46 if (defined $key and defined $value) { }
261 46 0 defined $key || @rest ? :
267 0 0 $_[0] < $_[1] ? :
268 0 0 $_[0] > $_[1] ? :