Branch Coverage

blib/lib/CGI/Push.pm
Criterion Covered Total %
branch 21 32 65.6


line true false branch
30 1 2 unless $type
31 0 3 unless $callback and ref $callback eq 'CODE'
32 0 3 unless defined $delay
34 3 0 unless defined $nph
38 0 3 if defined $target
39 0 3 if defined $cookie
41 3 0 if $nph
43 3 0 if $nph
54 3 1 unless $type =~ /^dynamic|heterogeneous$/i
57 1 3 if (@contents and defined $contents[0]) { }
59 0 1 if $self->push_delay
61 2 1 if ($last_page and ref $last_page eq 'CODE')
63 0 2 if $self->push_delay
64 2 0 unless $type =~ /^dynamic|heterogeneous$/i
86 0 1 if ($delay >= 1 and not $delay =~ /\./) { }
97 4 4 defined $delay ? :