Branch Coverage

blib/lib/Net/Statsd/Tiny.pm
Criterion Covered Total %
branch 12 18 66.6


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 1 3 if rand() < $rate
119 18 6 if ($self->autoflush)
125 1 5 if length $data > $avail
135 2 0 if (length $self->{'_buffer'})
144 0 0 if $is_global