Branch Coverage

blib/lib/Lingua/ManagementSpeak.pm
Criterion Covered Total %
branch 44 46 95.6


line true false branch
110 511 803 _random($2, $1) == $1 ? :
111 511 803 if ($word) { }
129 18 5269 if $t1 eq "adverb"
131 18 5269 if $t1 eq "adverb"
137 9 132 if ($1 =~ /ess$/) { }
3 129 elsif ($1 =~ /s$/) { }
177 360 92 unless $is_first
185 74 17 if (not defined $low) { }
4 13 elsif (not defined $high) { }
222 37 6 unless exists $params->{'p_min'}
223 37 6 unless exists $params->{'p_max'}
224 37 6 unless exists $params->{'b_freq'}
225 37 6 unless exists $params->{'b_min'}
226 37 6 unless exists $params->{'b_max'}
238 6 75 if ($_ != $p_count and _random(100, 1) < $params->{'b_freq'})
268 42 1 if $level
273 113 0 !($_ =~ /^(of|and|or)$/) ? :
295 30 37 if ($depth < $depth_limit and _random(5, 1) > 1)
332 4 75 if ($_->{'type'} ne "bullet" and $inside_list)
337 20 59 if ($_->{'type'} =~ /header(\d+)/) { }
40 19 elsif ($_->{'type'} eq 'paragraph') { }
19 0 elsif ($_->{'type'} eq 'bullet') { }
344 4 15 !$inside_list ? :