Branch Coverage

blib/lib/Tags/HTML/Page/Begin.pm
Criterion Covered Total %
branch 58 58 100.0


line true false branch
102 2 33 unless ($self->{'tags'} and $self->{'tags'}->isa("Tags::Output"))
107 1 32 if ($self->{'css'} and not $self->{'css'}->isa("CSS::Struct::Output"))
112 1 31 if (ref $self->{'css_src'} ne "ARRAY")
116 1 3 if (ref $css_src_hr ne "HASH")
120 1 3 if (&none(sub { $key eq $_; } , "link", "media"))
128 1 28 unless (defined $self->{'charset'})
133 2 26 if (ref $self->{'script_js'} ne "ARRAY")
138 2 24 if (ref $self->{'script_js_src'} ne "ARRAY")
143 1 23 if (defined $self->{'favicon'} and not $self->{'favicon'} =~ /\.(ico|png|jpg|gif|svg)$/ms)
156 2 18 if ($self->{'css'})
161 1 1 if ($css ne '') { }
177 19 1 if (defined $self->{'http_equiv_content_type'})
186 2 18 if (defined $self->{'base_href'})
191 1 1 defined $self->{'base_target'} ? :
196 1 19 unless (defined $self->{'http_equiv_content_type'})
210 1 19 if (defined $self->{'refresh'})
221 1 19 if (@{$self->{'script_js'};})
231 1 19 if (@{$self->{'script_js_src'};})
245 19 1 defined $self->{'lang'}{'title'} ? :
1 19 defined $css ? :
258 1 19 if (@{$self->{'css_src'};})
265 1 1 $css_src_hr->{'media'} ? :
273 1 19 if (defined $self->{'rss'})
295 15 5 unless (defined $self->{'favicon'})
301 1 4 if ($suffix eq 'ico') { }
1 3 elsif ($suffix eq 'png') { }
1 2 elsif ($suffix eq 'svg') { }
1 1 elsif ($suffix eq 'gif') { }
327 121 19 unless (defined $self->{$key})