Branch Coverage

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


line true false branch
25 9171 37629 if @_
26 29616 8013 unless my $headers = $self->{'headers'}{$header}
42 292 8768 unless $NAMES{$key}
51 6 51 defined $old ? :
76 30 193 if keys %{$hash;} == 0
81 2 218 ref $value eq 'ARRAY' ? :
91 191 782 if @_
93 213 569 unless my $headers = $self->{'headers'}{lc $name}
106 3 8 if $links
113 5 3 if defined $params->{'rel'}
121 149 8308 unless $NAMES{$_}
136 5 10640 if ($+[0] > $size or @$headers >= $lines)
142 8504 2136 if ($line =~ /^(\S[^:]*):\s*(.*)$/u) { }
3 2133 elsif ($line =~ s/^\s+//u and @$headers) { }
156 1 602 if length $self->{'buffer'} > $size
172 18 10 if $multi