| blib/lib/Net/Statsd/Tiny.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 11 | 18 | 61.1 |
| line | true | false | branch |
|---|---|---|---|
| 26 | 0 | 23 | if (@args == 1 and ref $args[0] eq 'HASH') { } |
| 43 | 138 | 0 | if exists $args{$attr} |
| 51 | 0 | 23 | unless $args{'_socket'} = 'IO::Socket::INET'->new('PeerAddr', $args{'host'}, 'PeerPort', $args{'port'}, 'Proto', $args{'proto'}) |
| 81 | 4 | 23 | if (defined $rate and $rate < 1) { } |
| 82 | 0 | 4 | if rand() < $rate |
| 119 | 17 | 6 | if ($self->autoflush) |
| 125 | 1 | 5 | if length $data > $avail |
| 135 | 2 | 0 | if (length $self->{'_buffer'}) |
| 144 | 0 | 0 | if $is_global |