Branch Coverage

blib/lib/Validate/Yubikey.pm
Criterion Covered Total %
branch 14 30 46.6


line true false branch
78 64 64 if ($n != 0)
116 1 0 if (exists $data{'callback'} and ref $data{'callback'} eq 'CODE') { }
122 1 0 if (exists $data{'update_callback'} and ref $data{'update_callback'} eq 'CODE') { }
128 1 0 if (exists $data{'log_callback'} and ref $data{'log_callback'} eq 'CODE') { }
134 0 1 if ($data{'max_age'}) { }
160 1 0 if ($otp =~ /^([cbdefghijklnrtuv]{0,16})([cbdefghijklnrtuv]{32})$/) { }
165 0 1 unless ($token)
171 0 6 unless (defined $$token{$k})
186 1 0 if (substr($plainhex, 0, length $$token{'iid'}) eq $$token{'iid'}) { }
189 1 0 if ($crc == 61624) { }
201 0 1 if ($count < $$token{'count'}) { }
0 1 elsif ($count == $$token{'count'}) { }
1 0 elsif ($count > $$token{'count'}) { }
204 0 0 if ($use <= $$token{'use'}) { }
0 0 elsif ($tsage > $$self{'max_age'}) { }