Branch Coverage

blib/lib/Net/Graphite.pm
Criterion Covered Total %
branch 20 44 45.4


line true false branch
15 1 5 @_ == 1 && ref $_[0] eq 'HASH' ? :
33 2 4 if @_ % 2
37 3 3 if ($args{'data'}) { }
39 0 3 if ($xform) { }
43 2 1 if (ref $args{'data'}) { }
47 2 0 if ($reftype eq 'HASH') { }
49 1 1 $args{'path'} ? :
78 1 2 unless defined $value
85 0 6 if $self->{'trace'}
87 0 6 unless ($TEST)
88 0 0 if ($self->connect)
92 0 0 unless (defined $res)
93 0 0 if $! == 4
97 0 0 unless $res
113 12 16 if (ref $hash) { }
128 0 0 if $self->{'_socket'} and $self->{'_socket'}->connected
137 0 0 unless ($self->{'_socket'})
138 0 0 if ($self->{'return_connect_error'}) { }
0 0 elsif (not $self->{'fire_and_forget'}) { }
154 0 0 unless my $socket = delete $self->{'_socket'}
166 0 3 if defined $path
171 0 3 if defined $xform