Condition Coverage

blib/lib/Crypt/RandPasswd.pm
Criterion Covered Total %
condition 142 168 84.5


and 3 conditions

line !l l&&!r l&&r condition
1407 0 20 20 $try <= 20 and not defined $word
1474 0 40 40 $try <= 20 and not defined $string
1638 82 20 0 $word eq '' and &_have_initial_y(@syllable_units)
78 20 4 length $word . $new_syllable == $pwlen and &_have_final_split(@syllable_units)
1757 101 159 0 $unit_count > 0 and $digram{$units[$unit_count - 1]}{$units[$unit_count]} & 8
1789 23 12 38 $rules{$units[$unit_count - 2]} & 2 and not $rules{$units[$unit_count - 2]} & 1
35 26 12 $rules{$units[$unit_count - 2]} & 2 and not $rules{$units[$unit_count - 2]} & 1 and $rules{$units[$unit_count - 1]} & 2
38 12 0 $rules{$units[$unit_count - 2]} & 2 and not $rules{$units[$unit_count - 2]} & 1 and $rules{$units[$unit_count - 1]} & 2 and $rules{$units[$unit_count]} & 2
1942 1 190 42 $outer_tries < $max_retries and $rule_broken || &_illegal_placement(@units_in_syllable)
1959 96 137 447 $tries <= $max_retries and $want_another_unit
1966 584 96 7208 $rule_broken and $tries <= $max_retries
2051 4684 358 2516 ALLOWED(32) and $vowel_count == 0
5025 16 1 ALLOWED(2) and $vowel_count == 0
5041 0 1 ALLOWED(2) and $vowel_count == 0 and not $rules{$unit} & 2
2103 961 6373 1 $current_unit == 2 and ALLOWED(128)
7334 1 0 $current_unit == 2 and ALLOWED(128) and $rules{$units_in_syllable[0]} & 1
4500 2823 12 ALLOWED(1) and $length_left == 0
216 15 2 ALLOWED(16) and not $rules{$units_in_syllable[$current_unit - 2]} & 2
2153 7124 102 109 not $rule_broken and $rules{$unit} & 2
7226 18 91 not $rule_broken and $rules{$unit} & 2 and $length_left > 0 || !($rules{$last_unit} & 4)
2168 93 9 6 $vowel_count > 1 and $rules{$last_unit} & 2
0 8 94 $vowel_count != 0 and not $rules{$last_unit} & 2
2201 7286 94 331 not $rule_broken and $want_another_unit
2205 124 203 4 $vowel_count != 0 and $rules{$unit} & 4
327 3 1 $vowel_count != 0 and $rules{$unit} & 4 and $length_left == 0
206 1 0 $vowel_count != 0 and $rules{$unit} & 4 and $length_left == 0 and not $rules{$last_unit} & 2
124 0 181 $vowel_count != 0 and $length_left > 0
2244 179 0 2 ALLOWED(128) and $current_unit > 1
1 1 0 $vowel_count == 1 && $rules{$last_unit} & 2
179 0 2 ALLOWED(128) and $current_unit > 1 and not $vowel_count == 1 && $rules{$last_unit} & 2
2291 305 42 237 $rules{$unit} & 2 and $current_unit > 0 || !($rules{$unit} & 1)
2393 147 96 24 not $rules{$units[$unit_count - 1]} & 2 and $rules{$units[$unit_count]} & 2
21 2 1 $rules{$units[$unit_count]} & 4 && $unit_count == $#units
243 1 23 not $rules{$units[$unit_count - 1]} & 2 and $rules{$units[$unit_count]} & 2 and not $rules{$units[$unit_count]} & 4 && $unit_count == $#units
97 23 0 not $rules{$units[$unit_count - 1]} & 2 and $rules{$units[$unit_count]} & 2 and not $rules{$units[$unit_count]} & 4 && $unit_count == $#units and $vowel_count
122 143 2 $unit_count >= 2 and !($rules{$units[$unit_count - 2]} & 2 || $rules{$units[$unit_count - 1]} & 2 || $rules{$units[$unit_count]} & 2) || $rules{$units[$unit_count - 2]} & 2 && !($rules{$units[0]} & 1 && $unit_count == 2) && $rules{$units[$unit_count - 1]} & 2 && $rules{$units[$unit_count]} & 2
2448 151 1 12 $rules{$units[0]} & 1 && $unit_count == 0 && @units > 1
240 12 152 $rules{$units[$unit_count]} & 2 and not $rules{$units[0]} & 1 && $unit_count == 0 && @units > 1

or 3 conditions

line l !l&&r !l&&!r condition
1638 0 0 102 &_improper_word(@word_units, @syllable_units) or $word eq '' and &_have_initial_y(@syllable_units)
0 21 81 &_improper_word(@word_units, @syllable_units) or $word eq '' and &_have_initial_y(@syllable_units) or length $word . $new_syllable == $pwlen and &_have_final_split(@syllable_units)
1789 23 0 0 $rules{$units[$unit_count - 2]} & 2 || $rules{$units[$unit_count - 1]} & 2 || $rules{$units[$unit_count]} & 2
0 0 73 $rules{$units[$unit_count - 2]} & 2 and not $rules{$units[$unit_count - 2]} & 1 and $rules{$units[$unit_count - 1]} & 2 and $rules{$units[$unit_count]} & 2 or not $rules{$units[$unit_count - 2]} & 2 || $rules{$units[$unit_count - 1]} & 2 || $rules{$units[$unit_count]} & 2
1826 21 0 0 not $rules{$units[$unit_count]} & 1 or $unit_count > 0
1942 95 36 101 $rule_broken || &_illegal_placement(@units_in_syllable)
2051 153 2516 5042 ALLOWED(8) or ALLOWED(32) and $vowel_count == 0
2516 4895 147 ALLOWED(8) or ALLOWED(32) and $vowel_count == 0 or ALLOWED(2) and $vowel_count == 0 and not $rules{$unit} & 2
2103 0 12 7323 $current_unit == 2 and ALLOWED(128) and $rules{$units_in_syllable[0]} & 1 or ALLOWED(1) and $length_left == 0
2804 4286 233 ALLOWED(32) or $digram{$units_in_syllable[$current_unit - 2]}{$last_unit} & 1
12 6912 411 $current_unit == 2 and ALLOWED(128) and $rules{$units_in_syllable[0]} & 1 or ALLOWED(1) and $length_left == 0 or (ALLOWED(32) or $digram{$units_in_syllable[$current_unit - 2]}{$last_unit} & 1)
7090 11 222 $current_unit == 2 and ALLOWED(128) and $rules{$units_in_syllable[0]} & 1 or ALLOWED(1) and $length_left == 0 or (ALLOWED(32) or $digram{$units_in_syllable[$current_unit - 2]}{$last_unit} & 1) or ALLOWED(16) and not $rules{$units_in_syllable[$current_unit - 2]} & 2
2153 100 8 1 $length_left > 0 || !($rules{$last_unit} & 4)
2205 13 13 305 ALLOWED(2) or $length_left == 0
0 26 305 $vowel_count != 0 and $rules{$unit} & 4 and $length_left == 0 and not $rules{$last_unit} & 2 or (ALLOWED(2) or $length_left == 0)
2291 154 108 17 $current_unit > 0 || !($rules{$unit} & 1)
2393 35 2 108 !($rules{$units[$unit_count - 2]} & 2 || $rules{$units[$unit_count - 1]} & 2 || $rules{$units[$unit_count]} & 2) || $rules{$units[$unit_count - 2]} & 2 && !($rules{$units[0]} & 1 && $unit_count == 2) && $rules{$units[$unit_count - 1]} & 2 && $rules{$units[$unit_count]} & 2
0 3 264 not $rules{$units[$unit_count - 1]} & 2 and $rules{$units[$unit_count]} & 2 and not $rules{$units[$unit_count]} & 4 && $unit_count == $#units and $vowel_count or $unit_count >= 2 and !($rules{$units[$unit_count - 2]} & 2 || $rules{$units[$unit_count - 1]} & 2 || $rules{$units[$unit_count]} & 2) || $rules{$units[$unit_count - 2]} & 2 && !($rules{$units[0]} & 1 && $unit_count == 2) && $rules{$units[$unit_count - 1]} & 2 && $rules{$units[$unit_count]} & 2