Branch Coverage

blib/lib/Net/Statsd/Server/Backend/Graphite.pm
Criterion Covered Total %
branch 12 36 33.3


line true false branch
37 1 5 defined $_[0] ? :
61 0 1 if ($legacyNamespace) { }
72 1 0 if ($globalPrefix ne '')
80 1 0 if ($prefixCounter ne '')
84 1 0 if ($prefixTimer ne '')
88 1 0 if ($prefixGauge ne '')
92 1 0 if ($prefixSet ne '')
117 0 1 if (not $$self{'prefixStats'})
156 0 2 if ($$self{'legacyNamespace'}) { }
168 0 0 if ($$timer_data{$key} and keys %{$$timer_data{$key};} > 0)
201 0 1 if ($$self{'legacyNamespace'}) { }
230 0 1 unless ($g_pref)
252 0 0 unless $$self{'graphiteHost'}
257 0 0 unless my $graphite = 'IO::Socket::INET'->new('PeerHost', $host, 'PeerPort', $port)
268 0 0 unless (eval { do { my $host = $$self{'graphiteHost'}; my $port = $$self{'graphitePort'}; die "Can't connect to Graphite on ${host}:${port}: $!" unless my $graphite = 'IO::Socket::INET'->new('PeerHost', $host, 'PeerPort', $port); my $stat_string = $self->stats_to_string($stat_list); $graphite->send($stat_string); $graphite->close; $$self{'lastFlush'} = [&Time::HiRes::gettimeofday()] } })
269 0 0 if ($$self{'debug'})
325 0 0 unless defined $val
327 0 0 exists $$attr{'fmt'} ? :