Branch Coverage

blib/lib/Lingua/DE/Sentence.pm
Criterion Covered Total %
branch 35 40 87.5


line true false branch
81 293 408 unless $sent =~ /\w/l
84 296 112 if ($rest =~ /^(?!\s*?$NL\s*?$NL)\s*\S/los)
88 3 293 if $sent =~ /[$QUOTE]$/lo and $rest =~ /^[$QUOTE()\s]*([[:lower:]])/lo
91 3 290 if $sent =~ /\W\.\.[$QUOTE\)]?$/lo and not $rest =~ /^(?:\s*$NL){2}/lo
98 205 85 if ($sent =~ /([^\W\d]+)\.[$QUOTE\)]*?$/lo)
99 28 177 if length $1 == 1
101 20 157 if $ABBREVIATIONS{$_}
102 13 144 if /^$CONSONANT+$/lo
103 2 142 if /^$VOCAL+$/lo
104 1 141 if /${CONSONANT}{4,}$/lo
110 8 2 if $sent =~ /\d\.$/l and $sent =~ /(?
114 6 212 if $sent =~ /\.$/l and $rest =~ /^\d/l
117 14 198 if $sent =~ m[ (?=[hfnmg]) (?:http|file|ftp|news|mailto|gopher) :// [\w\d\.\%\_\/\:\-]+ (?
124 7 191 if $rest =~ m[^([[:lower:]][[:lower:]\d]*[\.\?:/]?)+]lo and $sent =~ m[([[:lower:]\d]+[\.\?:/])+$]lo
128 3 188 if $sent =~ / \( [$QUOTE\.!?\)]+ $/lox
132 2 186 if ($sent =~ /\.$/l and $rest =~ /^(\w{1,4})\b/l)
133 2 0 if $FILE_EXTENSIONS{$_ = lc $1}
134 0 0 if /^$CONSONANT+$/lo
139 0 298 if wantarray
141 0 1 wantarray ? :