Branch Coverage

blib/lib/Business/ISIN.pm
Criterion Covered Total %
branch 14 18 77.7


line true false branch
36 0 1 if defined $initializer
52 0 2 unless $self->is_valid
74 2 4 unless length $1 > 0 and exists $Business::ISIN::country_code{uc $1}
77 1 3 unless length $2 > 0
80 1 2 unless length $3 > 0
83 1 1 unless length $4 == 0
86 1 0 unless $3 == check_digit($1 . $2)
101 0 48 unless $data =~ /^[A-Z]{2}[A-Z0-9]{9}$/
108 389 349 if ($i % 2 == 0)