Branch Coverage

blib/lib/Mojolicious/Plugin/OIDC.pm
Criterion Covered Total %
branch 18 34 52.9


line true false branch
50 0 2 unless keys %$config
56 0 2 unless $config->{'provider'}
68 2 2 $action_type eq 'login' ? :
69 3 1 if not $path or $seen_path{$path}++
70 1 0 $action_type eq 'login' ? :
71 1 0 $action_type eq 'login' ? :
111 4 8 if $plugin and $plugin->client->provider eq $client->provider
140 0 1 unless builtin::blessed($e) and $e->isa("OIDC::Client::Error")
141 1 0 if (my $error_path = $self->_oidc_config->{'authentication_error_path'}) { }
152 0 2 unless my $state = $c->req->param("state")
155 0 2 unless my $auth_data = $c->session->{'oidc_auth'}{$state}
173 0 0 unless my $state = $c->req->param("state")
176 0 0 unless my $logout_data = delete $c->session->{'oidc_logout'}{$state}
185 10 2 unless (defined $provider)
187 10 0 if (@providers == 1) { }
0 0 elsif (@providers > 1) { }
198 0 12 unless my $client = $self->_oidc_client_by_provider->{$provider}