| blib/lib/DataDog/DogStatsd.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 16 | 20 | 80.0 |
| line | true | false | branch |
|---|---|---|---|
| 24 | 0 | 4 | @_ % 2 ? : |
| 35 | 42 | 4 | if $self->{'_socket'} |
| 145 | 1 | 0 | if (my $key = $OPTS_KEYS{$opt}) |
| 151 | 2 | 2 | if ($tags) |
| 165 | 2 | 40 | defined $opts->{'sample_rate'} ? : |
| 166 | 42 | 0 | if ($sample_rate == 1 or rand() <= $sample_rate) |
| 170 | 2 | 40 | unless $sample_rate == 1 |
| 172 | 13 | 29 | if $opts->{'tags'} |
| 182 | 7 | 39 | if (not defined $r) { } |
| 0 | 39 | elsif ($r != length $message) { } |