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'}
276 0 0 0 exists $$config{'keyFlush'} && $$config{'keyFlush'}{'interval'}
395 0 0 0 $backend_status and ref $backend_status eq 'HASH'

or 2 conditions

line l !l condition
42 1 0 $opt ||= {}
309 0 0 $fields[0] || 0
319 0 0 $$timers{$key} ||= []
334 0 0 $$sets{$key} ||= {}
351 0 0 $$counters{$key} ||= 0
352 0 0 $value ||= 1
520 0 0 $config ||= {}
522 0 0 $$config{'backend'} || 'stdout'
523 0 0 $$config{'level'} || 'LOG_INFO'
538 0 0 $logger ||= sub { &AE::log(shift @_, shift @_); }
551 0 0 $$self{'backends'} ||= []
561 0 0 $$self{'backends'} || []
581 0 0 $self->config->{'flushInterval'} || 10000
609 0 0 $kf_log || 'stdout'
628 0 0 $$conf_kf{'percent'} || 100
683 0 0 $$config{'address'} || '0.0.0.0'
684 0 0 $$config{'port'} || 8125
686 0 0 $$config{'mgmt_address'} || '0.0.0.0'
687 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
302 0 0 0 not defined $fields[1] or $fields[1] eq ''
489 0 0 0 not $backends or ref $backends ne 'ARRAY'