| blib/lib/Auth/GoogleAuth.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 19 | 22 | 86.3 |
| line | true | false | branch |
|---|---|---|---|
| 37 | 2 | 1 | if $key_id |
| 38 | 2 | 1 | if $issuer |
| 40 | 1 | 2 | unless $self->key_id |
| 41 | 1 | 2 | unless $self->issuer |
| 49 | 1 | 2 | $return_otpauth ? : |
| 81 | 0 | 5 | unless $range =~ /^\d+$/ and $range >= 0 |
| 84 | 2 | 6 | if not $_ and $code eq $self->code($secret32, $timestamp, $interval) or $code eq $self->code($secret32, $timestamp + $interval * $_, $interval) or $code eq $self->code($secret32, $timestamp - $interval * $_, $interval) |
| 99 | 30 | 3 | if ($secret32) |
| 104 | 1 | 32 | unless ($self->secret32) |
| 105 | 1 | 0 | if (not $self->secret) { } |
| 120 | 0 | 56 | if $@ =~ /Data contains non-base32 characters/ |