Branch Coverage

blib/lib/ChordPro/Utils.pm
Criterion Covered Total %
branch 19 50 38.0


line true false branch
16 0 79 $^O =~ /MSWin|Windows_NT/iu ? :
30 0 79 $^O =~ /\A(?:MSWin32|VMS|os2|dos|riscos)\z/u ? :
39 0 368 unless defined $dir
40 368 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)
94 0 0 if $main::options->{'trace'}
97 0 0 if $res
106 0 169 unless $prp
115 0 0 if $_->{'select'}
116 0 0 if ($_->{'pattern'}) { }
125 0 507 if ($code)
128 0 0 if $@
147 14 8 if (/^(.*?)=(.+)/u) { }
2 6 elsif (/^no[-_]?(.+)/u) { }
166 0 449 if not defined $arg or $arg eq ""
167 13 436 if $arg =~ /^(false|null|no|none|off|\s+|0)$/iu
175 0 9 unless defined $arg
196 2 9 unless /[\\\s]/u or $force
221 0 10 if ($lk =~ /^\d+$/u and ref $o eq 'ARRAY') { }
222 0 0 unless (ref $$c eq "ARRAY")
252 0 46 if (defined $key and defined $value) { }
256 46 0 defined $key || @rest ? :