Branch Coverage

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


line true false branch
82 976 128 unless @_
85 117 26 ref $_ eq 'HASH' ? :
90 1 1980 unless $MESSAGES{($_[1] || $_[0]->code) // 404}
96 16 995 unless $$bufref =~ s/^(.*?)\x0d?\x0a//u
97 1 994 unless $1 =~ m[^\s*HTTP/(\d\.\d)\s+(\d\d\d)\s*(.+)?$]u
100 91 903 if $self->code($2)->is_empty
107 974 972 $self->{'fix'} ? :
111 943 29 unless $headers->date
114 84 888 if $self->is_empty
129 3 2923 unless my $code = $self->code
145 956 954 if defined $self->{'start_buffer'}
155 20 4780 unless my $code = $self->code
156 4089 1576 if $code >= $_