Branch Coverage

blib/lib/Mojo/Headers.pm
Criterion Covered Total %
branch 32 32 100.0


line true false branch
25 9291 38083 if @_
26 29992 8091 unless my $headers = $self->{'headers'}{$header}
42 292 8882 unless $NAMES{$key}
51 6 55 defined $old ? :
76 30 194 if keys %{$hash;} == 0
81 2 219 ref $value eq 'ARRAY' ? :
91 195 811 if @_
93 221 590 unless my $headers = $self->{'headers'}{lc $name}
106 3 8 if $links
113 5 3 if defined $params->{'rel'}
121 149 8429 unless $NAMES{$_}
136 5 10773 if ($+[0] > $size or @$headers >= $lines)
142 8613 2160 if ($line =~ /^(\S[^:]*):\s*(.*)$/u) { }
3 2157 elsif ($line =~ s/^\s+//u and @$headers) { }
156 1 606 if length $self->{'buffer'} > $size
172 18 10 if $multi