Condition Coverage

blib/lib/Net/Statsd/Server.pm
Criterion Covered Total %
condition 4 59 6.7


and 3 conditions

line !l l&&!r l&&r condition
144 0 1 0 exists $self->{'config'} and defined $self->{'config'}
277 0 0 0 exists $config->{'keyFlush'} && $config->{'keyFlush'}{'interval'}
396 0 0 0 $backend_status and ref $backend_status eq 'HASH'

or 2 conditions

line l !l condition
42 1 0 $opt ||= {}
310 0 0 $fields[0] || 0
320 0 0 $timers->{$key} ||= []
335 0 0 $sets->{$key} ||= {}
352 0 0 $counters->{$key} ||= 0
353 0 0 $value ||= 1
521 0 0 $config ||= {}
523 0 0 $config->{'backend'} || 'stdout'
524 0 0 $config->{'level'} || 'LOG_INFO'
539 0 0 $logger ||= sub { &AE::log(shift @_, shift @_); }
552 0 0 $self->{'backends'} ||= []
562 0 0 $self->{'backends'} || []
583 0 0 $self->config->{'flushInterval'} || 10000
610 0 0 $kf_log || 'stdout'
629 0 0 $conf_kf->{'percent'} || 100
684 0 0 $config->{'address'} || '0.0.0.0'
685 0 0 $config->{'port'} || 8125
687 0 0 $config->{'mgmt_address'} || '0.0.0.0'
688 0 0 $config->{'mgmt_port'} || 8126

or 3 conditions

line l !l&&r !l&&!r condition
43 0 1 0 ref $class || $class
148 0 1 0 $config_file ||= $self->config_file
303 0 0 0 not defined $fields[1] or $fields[1] eq ''
490 0 0 0 not $backends or ref $backends ne 'ARRAY'