| blib/lib/Yancy/Plugin/Auth/Github.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 14 | 20 | 70.0 |
| line | true | false | branch |
|---|---|---|---|
| 104 | 0 | 3 | if ($config->{'collection'}) |
| 109 | 4 | 8 | unless $config->{$attr} |
| 113 | 1 | 2 | unless $config->{$url_attr} |
| 152 | 0 | 5 | if (my $field = $self->plugin_field) |
| 155 | 0 | 5 | if ($username_field and $username_field ne $schema->{'x-id-field'}) |
| 167 | 3 | 3 | if (my $code = $c->param("code")) |
| 168 | 0 | 3 | if ($c->param("state") ne $c->csrf_token) |
| 196 | 0 | 3 | unless ($login) |
| 200 | 3 | 0 | if (not $self->_get_user($c, $login)) |
| 201 | 1 | 2 | unless ($self->allow_register) |