Branch Coverage

blib/lib/Text/ParseWords.pm
Criterion Covered Total %
branch 38 44 86.3


line true false branch
23 2 5 if @words and not defined $words[-1]
24 2 5 unless @words or not length $line
38 1 3 unless @words or not length $line
52 1 3 unless @{$allwords[$i];} or not length $lines[$i]
69 5 101 unless $line =~ s/^ (?: # double quoted string (") # $quote ((?>[^\\"]*(?:\\.[^\\"]*)*))" # $quoted | # --OR-- # singe quoted string (') # $quote ((?>[^\\']*(?:\\.[^\\']*)*))' # $quoted | # --OR-- # unquoted string ( # $unquoted (?:\\.|[^\\"'])*? ) # followed by ( # $delim \Z(?!\n) # EOL | # --OR-- (?-x:$delimiter) # delimiter | # --OR-- (?!^)(?=["']) # a quote ) )//sx
92 22 79 $1 ? :
95 0 77 unless defined $quote or length $unquoted or length $delim
97 27 74 if ($keep) { }
102 17 57 if (defined $quote)
103 15 2 if $quote eq "\""
104 1 16 if $PERL_SINGLE_QUOTE and $quote eq "'"
108 24 77 defined $quote ? :
110 55 46 if (length $delim)
112 4 51 if $keep eq "delimiters"
115 21 80 unless (length $line)
135 2 0 if @_
142 0 5 if (s/\A"(([^"\\]|\\.)*)"//s) { }
0 5 elsif (/\A"/) { }
0 5 elsif (s/\A'(([^'\\]|\\.)*)'//s) { }
0 5 elsif (/\A'/) { }
1 4 elsif (s/\A\\(.?)//s) { }
2 2 elsif (s/\A([^\s\\'"]+)//) { }