Branch Coverage

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


line true false branch
25 9912 43190 if @_
26 33161 10029 unless my $headers = $self->{'headers'}{$header}
42 296 9520 unless $NAMES{$key}
51 6 56 defined $old ? :
76 42 222 if keys %{$hash;} == 0
81 2 297 ref $value eq 'ARRAY' ? :
91 198 894 if @_
93 225 669 unless my $headers = $self->{'headers'}{lc $name}
106 3 8 if $links
113 5 3 if defined $params->{'rel'}
121 152 9066 unless $NAMES{$_}
136 5 11469 if ($+[0] > $size or @$headers >= $lines)
142 9168 2301 if ($line =~ /^(\S[^:]*):\s*(.*)$/u) { }
3 2298 elsif ($line =~ s/^\s+//u and @$headers) { }
156 1 644 if length $self->{'buffer'} > $size
172 18 32 if $multi