Branch Coverage

blib/lib/Mojolicious/Plugin/Statsd/Adapter/Statsd.pm
Criterion Covered Total %
branch 8 12 66.6


line true false branch
24 0 1 if (($sample_rate //= 1) < 1)
25 0 0 unless rand() <= $sample_rate
38 1 3 if (($sample_rate //= 1) < 1)
39 0 1 unless rand() <= $sample_rate
69 5 1 $_[1] == 1 ? :
75 1 7 unless ($self->socket->send($payload) // -1) == length $payload