Condition Coverage

blib/lib/Authen/TOTP.pm
Criterion Covered Total %
condition 20 45 44.4


and 3 conditions

line !l l&&!r l&&r condition
62 1 0 5 $digits and $digits =~ /^[68]$/
1 0 0 defined $self->{'digits'} && $self->{'digits'} =~ /^[68]$/
74 6 0 0 $period and $period =~ /^[36]0$/
1 0 5 defined $self->{'period'} && $self->{'period'} =~ /^[36]0$/
86 6 0 0 $algorithm and $algorithm =~ /^SHA\d+$/
1 0 5 defined $self->{'algorithm'} && $self->{'algorithm'} =~ /^SHA\d+$/
98 1 0 5 $when and $when =~ /^\-?\d+$/
1 0 0 defined $self->{'when'} && $self->{'when'} =~ /^\-?\d+$/
110 1 0 5 $tolerance and $tolerance =~ /^\d+$/
1 0 5 $tolerance and $tolerance =~ /^\d+$/ and $tolerance > 0
1 0 0 defined $self->{'tolerance'} && $self->{'tolerance'} =~ /^\d+$/
225 0 0 5 $otp and $otp =~ /^\d{6,8}$/

or 2 conditions

line l !l condition
148 6 0 eval { do { require MIME::Base32::XS; 1 } } || 0
164 0 0 eval { do { require MIME::Base32::XS; 1 } } || 0
226 0 0 $otp ||= ''

or 3 conditions

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