Condition Coverage

blib/lib/Authen/TOTP.pm
Criterion Covered Total %
condition 22 47 46.8


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+$/
263 0 0 18 $otp and $otp =~ /^\d{6,8}$/

or 2 conditions

line l !l condition
154 18 0 eval { do { require Digest::SHA; 1 } } || 0
186 0 19 eval { do { require MIME::Base32::XS; 1 } } || 0
202 0 0 eval { do { require MIME::Base32::XS; 1 } } || 0
264 0 0 $otp ||= ''

or 3 conditions

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