Branch Coverage

blib/lib/Plack/Middleware/BasicStyle.pm
Criterion Covered Total %
branch 29 30 96.6


line true false branch
35 2 11 if $self->use_link_header
42 1 11 if $self->any_content_type
45 1 10 unless $content_type
51 2 11 if ($self->use_link_header)
53 1 1 if (lc $req->path eq lc $self->use_link_header)
65 0 12 if (ref $res ne 'ARRAY' or @$res < 3 or ref $res->[2] ne 'ARRAY') { }
1 11 elsif (not $self->_content_type_ok($res->[1])) { }
75 3 11 if $tagname eq 'html'
76 3 11 if $tagname eq 'head'
77 5 9 if $tagname eq 'doctype'
78 2 12 if $tagname eq 'style'
80 1 13 if $tagname eq 'link' and ($attr->{'rel'} // '') =~ /stylesheet/isu
90 2 9 if $styled and not $self->even_if_styled
92 1 8 if ($self->use_link_header) { }
99 5 3 if ($head_end or $html_end or $doctype_end) { }