Branch Coverage

blib/lib/Plack/Middleware/iPhone.pm
Criterion Covered Total %
branch 12 26 46.1


line true false branch
25 0 1 if $self->manifest
44 1 0 if ($h->get('Content-Type') =~ m[^text/html])
47 1 1 unless defined $chunk
50 1 0 if ($chunk =~ m[]i)
63 0 1 unless my $dom = 'HTML::DOM'->new
67 0 1 if (my $manifest = $self->manifest)
83 1 0 if $self->icon
84 1 0 if $self->startup_image
87 0 2 if ($rel_links{$$link_attrs{'rel'}}) { }
97 1 0 if ($self->tidy)
99 0 1 if ('HTML::Tidy'->require) { }
130 0 0 unless open my $fh, '>', $manifest
135 0 0 if $file eq $manifest or $file =~ /\.psgi$/