Branch Coverage

blib/lib/Net/Graphite.pm
Criterion Covered Total %
branch 24 60 40.0


line true false branch
15 1 5 @_ == 1 && ref $_[0] eq 'HASH' ? :
40 2 4 if @_ % 2
43 3 3 if ($args{'data'}) { }
45 0 3 if ($xform) { }
49 2 1 if (ref $args{'data'}) { }
1 0 elsif (length $args{'data'}) { }
53 2 0 if ($reftype eq 'HASH') { }
55 1 1 $args{'path'} ? :
87 1 2 unless defined $value
98 6 0 if defined wantarray
107 0 6 unless my $flush_buffer = $self->{'_flush_buffer'}
108 0 6 unless @$flush_buffer
110 0 6 if $self->{'trace'}
113 6 0 if $TEST
117 0 0 unless $self->connect
129 0 0 if $batch_size + $msg_size > $size_limit
143 0 0 unless (defined $res)
144 0 0 if $! == 4
152 0 0 if $self->{'fire_and_forget'}
163 0 0 if ++$retries > $self->{'max_retries'}
172 0 0 if (length $buf and not $self->{'fire_and_forget'})
189 12 16 if (ref $hash) { }
204 0 0 if $self->{'_socket'}
213 0 0 unless ($self->{'_socket'})
214 0 0 if ($self->{'return_connect_error'}) { }
0 0 elsif (not $self->{'fire_and_forget'}) { }
230 0 0 unless my $socket = delete $self->{'_socket'}
242 0 0 if defined $limit
247 0 3 if defined $path
252 0 3 if defined $xform