Branch Coverage

blib/lib/Mojo/Graphite/Writer.pm
Criterion Covered Total %
branch 18 22 81.8


line true false branch
33 1 4 unless ($self->{'pid'} //= $$) eq $$
35 3 2 if (my $stream = $self->{'stream'}) { }
44 0 2 if ($err)
64 3 0 if (my $cb = $self->preprocess)
66 4 4 ref $_ ? :
79 2 2 unless defined $metric[2]
82 3 1 if ($metric[3] and keys %{$metric[3];})
101 0 3 unless @{$self->{'queue'} ||= [];}
103 0 3 if $self->{'writing'}
113 3 3 unless (@{$queue->[0][0];})
120 3 3 unless (@$queue)