Branch Coverage

blib/lib/Net/Graphite.pm
Criterion Covered Total %
branch 22 50 44.0


line true false branch
15 1 5 @_ == 1 && ref $_[0] eq 'HASH' ? :
38 2 4 if @_ % 2
41 3 3 if ($args{'data'}) { }
43 0 3 if ($xform) { }
48 2 1 if (ref $args{'data'}) { }
52 2 0 if ($reftype eq 'HASH') { }
54 1 1 $args{'path'} ? :
84 1 2 unless defined $value
99 0 6 unless my $flush_buffer = $self->{'_flush_buffer'}
100 0 6 unless @$flush_buffer
102 0 6 if $self->{'trace'}
104 0 6 unless ($TEST)
106 0 0 if ($self->connect)
110 0 0 unless (defined $res)
111 0 0 if $! == 4
117 0 0 if (length $buf and not $self->{'fire_and_forget'})
130 12 16 if (ref $hash) { }
145 0 0 if $self->{'_socket'} and $self->{'_socket'}->connected
154 0 0 unless ($self->{'_socket'})
155 0 0 if ($self->{'return_connect_error'}) { }
0 0 elsif (not $self->{'fire_and_forget'}) { }
171 0 0 unless my $socket = delete $self->{'_socket'}
183 0 0 if defined $limit
188 0 3 if defined $path
193 0 3 if defined $xform