Branch Coverage

blib/lib/HTML/Mason/FakeApache.pm
Criterion Covered Total %
branch 58 88 65.9


line true false branch
57 0 0 $self->{'query'}->query_string ? :
65 0 0 unless $ENV{'SERVER_PROTOCOL'}
94 0 0 if (@_)
97 0 0 unless wantarray
124 1 0 $self->{'query'}->can('content_type') ? :
129 0 2 wantarray ? :
135 0 1 @_ ? :
162 3 10 exists $h->{'Location'} || exists $e->{'Location'} ? :
170 0 6 if $self->http_header_sent
190 0 1 wantarray ? :
1 3 unless defined $key
191 1 2 if @_
198 0 1 wantarray ? :
1 2 unless defined $key
199 1 1 if @_
205 3 7 unless (defined $key)
208 0 3 wantarray ? :
212 1 6 if @_
226 0 0 unless $langs
240 0 0 if (@_)
249 1 24 wantarray ? :
255 5 3 @_ ? :
260 0 15 wantarray ? :
266 1 0 @_ ? :
327 5 18 if @_
333 7 0 defined $value ? :
355 1 0 if (defined $self->{$key}) { }
365 0 2 ref $val ? :
366 1 1 unless &$code($k, $v)
386 0 196 substr($key, 0, 1) eq '-' ? :
391 1 107 ref $value ? :
396 0 3 unless defined $_[0]
397 0 3 ref $_[0] ? :
399 2 1 if (exists $self->{$ckey}) { }
400 0 2 if (ref $self->{$ckey}[1]) { }
419 3 39 unless my $val = $$self{_canonical_key($key)}
420 2 37 if (my $ref = ref $val->[1])
421 0 2 unless $val->[1][0]
431 1 13 unless exists $self->{$ckey}
432 11 2 unless ref $self->{$ckey}[1]
433 1 1 wantarray ? :
451 2 3 unless defined $first_key
459 2 0 unless defined $next_key
469 1 8 $_[0] eq '-set-cookie' ? :