| blib/lib/DataDog/DogStatsd.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 17 | 22 | 77.2 |
| line | true | false | branch |
|---|---|---|---|
| 24 | 0 | 4 | @_ % 2 ? : |
| 35 | 53 | 4 | if $self->{'_socket'} |
| 46 | 0 | 2 | unless @_ |
| 145 | 3 | 0 | if (my $key = $OPTS_KEYS{$opt}) |
| 151 | 4 | 4 | if ($tags) |
| 165 | 2 | 47 | defined $opts->{'sample_rate'} ? : |
| 166 | 49 | 0 | if ($sample_rate == 1 or rand() <= $sample_rate) |
| 170 | 2 | 47 | unless $sample_rate == 1 |
| 172 | 17 | 32 | if $opts->{'tags'} |
| 182 | 9 | 48 | if (not defined $r) { } |
| 0 | 48 | elsif ($r != length $message) { } |