Branch Coverage

blib/lib/Summerset/IsbnConverter.pm
Criterion Covered Total %
branch 20 22 90.9


line true false branch
67 1 1 unless &validateIsbn13($input) and $input =~ /^978/
94 1 1 unless &validateIsbn10($input)
119 9 0 if ($input =~ /^\d{9}$/) { }
133 4 5 $return_value == 10 ? :
154 4 0 if ($input =~ /^\d{12}$/) { }
161 24 24 $i % 2 == 0 ? :
187 4 2 if ($input =~ /^(\d{9})(\d|X)$/i) { }
193 3 1 if (&generateIsbn10CheckDigit($1) eq $2) { }
218 3 2 if ($input =~ /^(\d{3})(\d{9})(\d)$/) { }
221 2 1 if (&generateIsbn13CheckDigit("$1$2") == $3) { }
242 2 16 if ($input =~ /x$/i)