Branch Coverage

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


line true false branch
110 560 886 _random($2, $1) == $1 ? :
111 560 886 if ($word) { }
129 22 5582 if $t1 eq 'adverb'
131 22 5582 if $t1 eq 'adverb'
137 15 132 if ($1 =~ /ess$/) { }
4 128 elsif ($1 =~ /s$/) { }
177 362 94 unless $is_first
185 76 17 if (not defined $low) { }
4 13 elsif (not defined $high) { }
222 36 6 unless exists $params->{'p_min'}
223 36 6 unless exists $params->{'p_max'}
224 36 6 unless exists $params->{'b_freq'}
225 36 6 unless exists $params->{'b_min'}
226 36 6 unless exists $params->{'b_max'}
238 12 71 if ($_ != $p_count and _random(100, 1) < $params->{'b_freq'})
268 41 1 if $level
273 113 0 !($_ =~ /^(of|and|or)$/) ? :
295 24 34 if ($depth < $depth_limit and _random(5, 1) > 1)
332 5 60 if ($_->{'type'} ne 'bullet' and $inside_list)
337 14 51 if ($_->{'type'} =~ /header(\d+)/) { }
31 20 elsif ($_->{'type'} eq 'paragraph') { }
20 0 elsif ($_->{'type'} eq 'bullet') { }
344 5 15 !$inside_list ? :