Branch Coverage

blib/lib/Plack/Middleware/JSONP.pm
Criterion Covered Total %
branch 6 8 75.0


line true false branch
11 1 1 unless (defined $self->callback_key)
21 4 0 if (defined $res->[2])
24 2 2 if ($h->get('Content-Type') =~ m[/(?:json|javascript)] and $env->{'QUERY_STRING'} =~ /(?:^|&)$callback_key=([^&]+)/)
27 2 0 if ($cb =~ /^[\w\.\[\]]+$/)