Branch Coverage

blib/lib/Mojo/Message/Response.pm
Criterion Covered Total %
branch 26 26 100.0


line true false branch
82 964 128 unless @_
85 117 26 ref $_ eq 'HASH' ? :
90 1 1956 unless $MESSAGES{($_[1] || $_[0]->code) // 404}
96 16 983 unless $$bufref =~ s/^(.*?)\x0d?\x0a//u
97 1 982 unless $1 =~ m[^\s*HTTP/(\d\.\d)\s+(\d\d\d)\s*(.+)?$]u
100 91 891 if $self->code($2)->is_empty
107 962 960 $self->{'fix'} ? :
111 931 29 unless $headers->date
114 84 876 if $self->is_empty
129 3 2887 unless my $code = $self->code
145 944 942 if defined $self->{'start_buffer'}
155 20 4720 unless my $code = $self->code
156 4037 1556 if $code >= $_