Branch Coverage

lib/Plack/Middleware/Validate_Google_IAP_JWT.pm
Criterion Covered Total %
branch 13 26 50.0


line true false branch
80 0 3 if (ref $app eq "ARRAY")
87 1 2 if ($self->{'guest_subpath'} and substr($env->{'PATH_INFO'}, 0, length $self->{'guest_subpath'}) eq $self->{'guest_subpath'})
93 1 1 unless ($env->{'HTTP_X_GOOG_IAP_JWT_ASSERTION'})
98 1 0 if ($err)
107 0 0 if ($self->{'want_hd'})
119 1 0 if ($@) { }
133 1 0 $self->{'want_hd'} ? :
139 0 1 if ($errmsg =~ /^(JWT: \S+ claim check failed.*?) at/) { }
148 0 1 if ($self->{'_iap_public_key'} and time + 10 < $self->{'_expires_at'})
152 0 1 if ($err)
164 0 0 if ($err) { }
174 1 0 if ($response->{'success'}) { }
177 1 0 $headers->{'expires'} ? :