Branch Coverage

blib/lib/Prancer/Response.pm
Criterion Covered Total %
branch 21 30 70.0


line true false branch
33 0 3 unless @_ % 2 == 0
36 4 0 unless $self->headers->get_all($key)
54 0 3 unless @_
57 0 3 if (@_ == 1)
59 0 0 unless wantarray
64 0 3 unless @_ % 2 == 0
71 3 0 unless $self->cookies->get_all($key)
86 1 1 if (ref $_[0] and ref $_[0] eq 'CODE')
122 1 5 if (ref $$self{'_callback'} and ref $$self{'_callback'} eq 'CODE')
163 2 1 if $$value{'domain'}
164 2 1 if $$value{'path'}
165 2 1 if $$value{'expires'}
166 1 2 if $$value{'secure'}
167 1 2 if $$value{'httponly'}
178 2 0 if ($expires =~ /^\-?\d+$/x)