Branch Coverage

blib/lib/AnyEvent/Yubico.pm
Criterion Covered Total %
branch 19 32 59.3


line true false branch
59 0 5 if (exists $$self{'timeout'})
62 0 5 if (exists $$self{'sl'})
65 0 5 if ($$self{'timestamp'})
69 4 1 if ($$self{'sign_request'} and !$$self{'api_key'} eq '')
89 3 2 if (exists $$result{'status'}) { }
2 0 elsif (exists $$last_response{'status'}) { }
108 6 3 unless ($$hdr{'Status'} =~ /^2/)
110 2 4 unless (exists $$last_response{'status'})
119 0 3 unless (exists $$response{'status'})
125 2 1 if (!$$self{'api_key'} eq '')
128 0 2 if (!$signature eq $self->sign($response))
135 0 3 if ($$response{'status'} eq 'REPLAYED_REQUEST') { }
140 0 3 if ($$response{'status'} eq 'OK')
141 0 0 if !$nonce eq $$response{'nonce'}
142 0 0 if !$otp eq $$response{'otp'}
174 3 0 if ($body)