Condition Coverage

blib/lib/Authen/TOTP.pm
Criterion Covered Total %
condition 23 49 46.9


and 3 conditions

line !l l&&!r l&&r condition
60 1 0 18 $digits and $digits =~ /^[68]$/
1 0 0 defined $self->{'digits'} && $self->{'digits'} =~ /^[68]$/
72 19 0 0 $period and $period =~ /^[36]0$/
1 0 18 defined $self->{'period'} && $self->{'period'} =~ /^[36]0$/
84 19 0 2 $algorithm and $algorithm =~ /^SHA\d+$/
1 0 18 defined $self->{'algorithm'} && $self->{'algorithm'} =~ /^SHA\d+$/
96 1 0 18 $when and $when =~ /^\-?\d+$/
1 0 0 defined $self->{'when'} && $self->{'when'} =~ /^\-?\d+$/
108 1 0 18 $tolerance and $tolerance =~ /^\d+$/
1 0 18 $tolerance and $tolerance =~ /^\d+$/ and $tolerance > 0
1 0 0 defined $self->{'tolerance'} && $self->{'tolerance'} =~ /^\d+$/
281 0 0 18 $otp and $otp =~ /^\d{6,8}$/

or 2 conditions

line l !l condition
171 18 0 eval { do { require Digest::SHA; 1 } } || 0
203 0 19 eval { do { require MIME::Base32::XS; 1 } } || 0
219 0 0 eval { do { require MIME::Base32::XS; 1 } } || 0
234 1 0 shift() || 20
282 0 0 $otp ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
357 0 1 0 ref $this || $this