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) |
65 | 4 | 4 | ref $_ ? : |
78 | 2 | 2 | unless defined $metric[2] |
81 | 3 | 1 | if ($metric[3] and keys %{$metric[3];}) |
97 | 0 | 3 | unless @{$self->{'queue'} ||= [];} |
99 | 0 | 3 | if $self->{'writing'} |
109 | 3 | 3 | unless (@{$queue->[0][0];}) |
116 | 3 | 3 | unless (@$queue) |