Branch Coverage

blib/lib/Math/CheckDigits.pm
Criterion Covered Total %
branch 28 38 73.6


line true false branch
23 1 6 if (@_ == 2) { }
27 2 4 ref $_[0] ? :
29 0 7 unless $$self{'modulus'} and $$self{'weight'}
32 1 6 unless (ref $$self{'weight'})
37 7 0 unless $$self{'trans_table'}
42 7 0 unless $$self{'options'}
53 14 1 if $self->options('start_at_right')
59 15 0 if $self->options('DSR')
63 1 14 defined $trans_table{$check_digit} ? :
66 0 15 if length $check_digit >= 2
85 2 30 if (@_)
86 0 2 ref $_[0] ? :
95 0 146 if @_ == 0
96 144 2 if @_ == 1 and not ref $_[0]
99 0 2 ref $_[0] ? :
110 0 11 if /\d/
115 3 111 defined $trans_table{$digit} ? :
116 0 114 if $num =~ /\D/
119 108 6 if (not $self->options('runes')) { }