Branch Coverage

blib/lib/WWW/Chain.pm
Criterion Covered Total %
branch 20 34 58.8


line true false branch
56 0 3 unless not $next_step or ref $next_step eq "CODE"
79 8 8 if ($self->is_request($arg)) { }
2 6 elsif (ref $arg eq '') { }
6 0 elsif (ref $arg eq 'CODE') { }
82 0 2 unless $self->can($arg)
89 0 0 defined $arg ? :
92 0 8 unless @requests
98 0 8 if $self->done
100 0 8 unless scalar @responses == $amount
103 0 8 if grep {not $self->is_response($_);} @responses
109 4 4 if ($self->is_request($result[0]))
111 0 4 if @others
123 1 3 unless ($self->next_requests)
124 0 1 unless $self->can("start_chain")
126 0 1 if scalar @others > 0
127 0 1 unless scalar @{$next_requests;} > 0
128 1 0 if $next_step