Branch Coverage

blib/lib/Flower/Node.pm
Criterion Covered Total %
branch 14 40 35.0


line true false branch
29 0 7 if ref $class
33 2 5 unless $args->{'parent'}
34 1 4 unless $args->{'port'}
35 1 3 unless $args->{'ip'}
75 0 0 unless defined $self->{'files'}
81 0 0 if $self->{'files'}
98 1 1 if $self->{'timeout'} < time
108 0 1 if ($self->{'ping_cv'})
113 1 0 if ($self->{'timeout'} - $timeout / 2 < time)
143 0 0 if ($tx and $tx->res and $tx->res->code and $tx->res->code == 200) { }
146 0 0 if (not $@ and $response->{'result'} eq 'ok') { }
149 0 0 if (not $self->uuid or $response->{'uuid'} eq $self->uuid) { }
186 0 0 if (&refaddr($self) eq &refaddr(scalar $self->parent->self))
190 0 0 if ($self->{'files_cv'})
222 0 0 if ($tx and $tx->res and $tx->res->code and $tx->res->code == 200) { }
225 0 0 if (not $@ and $response->{'result'} eq 'ok') { }
230 0 0 unless ($self->has_files_object)
261 0 3 $self->{'uuid'} ? :
3 0 $self->{'ip'} ? :
3 0 $self->{'port'} ? :