Branch Coverage

blib/lib/Silly/Werder.pm
Criterion Covered Total %
branch 27 168 16.0


line true false branch
55 0 0 if (scalar @_ == 3)
61 0 0 if ($min > $max)
63 0 0 if (ref $obj) { }
80 0 0 if (scalar @_ == 3)
86 0 0 if ($min > $max)
88 0 0 if (ref $obj) { }
105 0 0 if (scalar @_ == 2)
110 0 0 if (ref $obj) { }
114 0 0 if ($max < 0)
115 0 0 if ($max < $$target{'syllables_min'})
129 0 0 if (scalar @_ == 2)
134 0 0 if (ref $obj) { }
150 0 0 if (scalar @_ == 2)
155 0 0 if (ref $obj) { }
178 1 0 if (scalar @_ == 1)
186 0 1 if (ref $obj) { }
189 0 1 if ($which_kind == 0)
190 1 0 if ($which_kind == 1)
191 0 1 if ($which_kind == 2)
201 0 0 if (scalar @_ == 1)
207 0 0 if (ref $obj) { }
219 0 0 if (scalar @_ == 1)
225 0 0 if (ref $obj) { }
237 0 0 if (scalar @_ == 1)
243 0 0 if (ref $obj) { }
258 0 0 if (ref $obj) { }
277 1 0 if (ref $obj) { }
297 0 1 if (ref $obj) { }
323 1 7 if (not $$obj{'grammar'} && $$obj{'index'})
336 8 0 if (scalar @_ == 1)
339 8 0 if (ref $obj) { }
350 0 8 if ($$target{'unlinked'}) { }
370 0 45 if ($$target{'hard_syllable_max'} and $sylcount >= $$target{'hard_syllable_max'})
376 37 8 if ($syl ne '_BEGIN_')
378 45 0 if $$target{'grammar'}[$offset][1]
380 4 41 if ($sylcount >= $$target{'max_syllables'} - 1)
384 4 271 if ($$target{'grammar'}[$offset][1][$i][0] eq '_END_')
390 41 4 if ($which < 0)
403 42 8548 if ($freq_sum >= $which_freq)
426 1 0 if (scalar @_ == 2)
429 1 0 if (ref $obj) { }
445 0 1 if ($$target{'end_with_newline'})
465 0 0 if (ref $obj) { }
473 0 0 unless open SYLS, $syllable_file
478 0 0 length $a < length $b ? :
479 0 0 unless substr(lc $a, 0, $min) cmp substr(lc $b, 0, $min)
485 0 0 if (lc $syllables[$i] eq lc $syllables[$i - 1])
496 0 0 if ($first eq $firsttwo)
513 0 0 if (ref $obj) { }
516 0 0 unless ($$target{'syllables'})
517 0 0 if (_load_syllables($target) < 0)
521 0 0 unless open SYL_OUT, ">$syl_out_file"
536 0 0 length $a < length $b ? :
537 0 0 unless substr($a, 0, $min) cmp substr($b, 0, $min)
563 0 0 if ($werd eq '')
587 0 0 if ($start_at and not $ready)
588 0 0 if ($syl eq $start_at or not $start_at)
589 0 0 if $next_syl
592 0 0 if ($werd =~ /^$syl(.*)$/is)
600 0 0 if ($werd_parts and scalar @{$werd_parts;}) { }
626 0 0 if (ref $obj) { }
631 0 0 if ($locale)
633 0 0 unless (defined $ret)
638 0 0 if (_load_syllables($target) < 0)
644 0 0 if ($werd eq '')
648 0 0 if ($variations == 0) { }
670 0 0 if ($account{$syllable}{$follower} < $appears_threshold)
688 0 0 if ($follower eq '_END_')
690 0 0 if ($explicit_keep)
692 0 0 if ($linkcount < $follower_threshold)
697 0 0 if ($account{$prior}{$syllable})
712 0 0 unless (defined $$index{$syllable})
723 0 0 unless ($follower_offset)
750 0 0 if (ref $obj) { }
753 0 0 unless ($$target{'grammar'})
760 0 0 unless (Storable::nstore($$target{'grammar'}, $grammar_out_file))
775 0 0 if (ref $obj) { }
781 0 0 unless (defined $grammar_ref)
803 0 0 if (ref $obj) { }
809 0 0 unless open SYLS, $syllable_file
814 0 0 length $a < length $b ? :
815 0 0 unless substr(lc $a, 0, $min) cmp substr(lc $b, 0, $min)
821 0 0 if (lc $syllables[$i] eq lc $syllables[$i - 1])
832 0 0 if ($first eq $firsttwo)