Condition Coverage

blib/lib/Authen/TOTP.pm
Criterion Covered Total %
condition 26 49 53.0


and 3 conditions

line !l l&&!r l&&r condition
61 19 0 36 $digits and $digits =~ /^[68]$/
1 0 18 defined $self->{'digits'} && $self->{'digits'} =~ /^[68]$/
73 55 0 0 $period and $period =~ /^[36]0$/
19 0 36 defined $self->{'period'} && $self->{'period'} =~ /^[36]0$/
85 55 0 20 $algorithm and $algorithm =~ /^SHA\d+$/
19 0 36 defined $self->{'algorithm'} && $self->{'algorithm'} =~ /^SHA\d+$/
97 19 0 36 $when and $when =~ /^\-?\d+$/
1 0 18 defined $self->{'when'} && $self->{'when'} =~ /^\-?\d+$/
109 19 0 36 $tolerance and $tolerance =~ /^\d+$/
19 0 36 $tolerance and $tolerance =~ /^\d+$/ and $tolerance > 0
1 0 18 defined $self->{'tolerance'} && $self->{'tolerance'} =~ /^\d+$/
280 0 0 36 $otp and $otp =~ /^\d{6,8}$/

or 2 conditions

line l !l condition
172 54 0 eval { do { require Digest::SHA; 1 } } || 0
204 0 73 eval { do { require Encode::Base2N; 1 } } || 0
220 0 0 eval { do { require Encode::Base2N; 1 } } || 0
235 19 0 shift() || 20
281 0 0 $otp ||= ""

or 3 conditions

line l !l&&r !l&&!r condition
374 0 19 0 ref $this || $this