Branch Coverage

blib/lib/Win32/ShellQuote.pm
Criterion Covered Total %
branch 22 28 78.5


line true false branch
40 11 36 if (_has_shell_metachars($args))
47 0 0 if (@_ > 1) { }
59 0 0 unless (_has_shell_metachars($args))
69 6 52 if ($string =~ /[\r\n\0]/)
81 0 144 if (not $force and $text ne '' and not $text =~ /[ \t\n\x0b"]/) { }
97 4 43 if $string =~ /%/
107 2 51 unless my $length = length $_
116 10 303 if (/\G((?:\\\\)+)(?=\\?(")?)/cg) { }
16 287 elsif (/\G\\"/cg) { }
131 156 elsif (/\G"/cg) { }
23 133 elsif (not $quote_mode and /\G\s+/cg) { }
133 0 elsif (/\G(.)/cgs) { }
117 7 3 if (defined $2) { }
128 14 117 if ($quote_mode and /\G"/cg)