Branch Coverage

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


line true false branch
110 446 769 _random($2, $1) == $1 ? :
111 446 769 if ($word) { }
129 15 4638 if $t1 eq "adverb"
131 15 4638 if $t1 eq "adverb"
137 3 108 if ($1 =~ /ess$/) { }
2 106 elsif ($1 =~ /s$/) { }
177 306 84 unless $is_first
185 63 20 if (not defined $low) { }
4 16 elsif (not defined $high) { }
222 29 6 unless exists $params->{'p_min'}
223 29 6 unless exists $params->{'p_max'}
224 29 6 unless exists $params->{'b_freq'}
225 29 6 unless exists $params->{'b_min'}
226 29 6 unless exists $params->{'b_max'}
238 8 65 if ($_ != $p_count and _random(100, 1) < $params->{'b_freq'})
268 34 1 if $level
273 92 0 if (not $_ =~ /^(of|and|or)$/) { }
295 26 32 if ($depth < $depth_limit and _random(5, 1) > 1)
332 5 66 if ($_->{'type'} ne "bullet" and $inside_list)
337 18 53 if ($_->{'type'} =~ /header(\d+)/) { }
35 18 elsif ($_->{'type'} eq 'paragraph') { }
18 0 elsif ($_->{'type'} eq 'bullet') { }
344 5 13 !$inside_list ? :