Branch Coverage

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


line true false branch
110 350 675 _random($2, $1) == $1 ? :
111 350 675 if ($word) { }
129 14 4177 if $t1 eq "adverb"
131 14 4177 if $t1 eq "adverb"
137 5 113 if ($1 =~ /ess$/) { }
5 108 elsif ($1 =~ /s$/) { }
177 279 79 unless $is_first
185 62 16 if (not defined $low) { }
4 12 elsif (not defined $high) { }
222 28 6 unless exists $params->{'p_min'}
223 28 6 unless exists $params->{'p_max'}
224 28 6 unless exists $params->{'b_freq'}
225 28 6 unless exists $params->{'b_min'}
226 28 6 unless exists $params->{'b_max'}
238 9 59 if ($_ != $p_count and _random(100, 1) < $params->{'b_freq'})
268 33 1 if $level
273 82 0 if (not $_ =~ /^(of|and|or)$/) { }
295 22 30 if ($depth < $depth_limit and _random(5, 1) > 1)
332 5 59 if ($_->{'type'} ne "bullet" and $inside_list)
337 14 50 if ($_->{'type'} =~ /header(\d+)/) { }
31 19 elsif ($_->{'type'} eq 'paragraph') { }
19 0 elsif ($_->{'type'} eq 'bullet') { }
344 5 14 !$inside_list ? :