Branch Coverage

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 @_
146 3 0 if (my $key = $OPTS_KEYS{$opt})
152 4 4 if ($tags)
166 2 47 defined $opts->{'sample_rate'} ? :
167 49 0 if ($sample_rate == 1 or rand() <= $sample_rate)
171 2 47 unless $sample_rate == 1
173 17 32 if $opts->{'tags'}
183 9 48 if (not defined $r) { }
0 48 elsif ($r != length $message) { }