Branch Coverage

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


line true false branch
25 9868 42789 if @_
26 32915 9874 unless my $headers = $self->{'headers'}{$header}
42 296 9484 unless $NAMES{$key}
51 6 56 defined $old ? :
76 42 218 if keys %{$hash;} == 0
81 2 293 ref $value eq 'ARRAY' ? :
91 198 893 if @_
93 225 668 unless my $headers = $self->{'headers'}{lc $name}
106 3 8 if $links
113 5 3 if defined $params->{'rel'}
121 152 9031 unless $NAMES{$_}
136 5 11429 if ($+[0] > $size or @$headers >= $lines)
142 9136 2293 if ($line =~ /^(\S[^:]*):\s*(.*)$/u) { }
3 2290 elsif ($line =~ s/^\s+//u and @$headers) { }
156 1 594 if length $self->{'buffer'} > $size
172 18 32 if $multi