Condition Coverage

blib/lib/DataDog/DogStatsd/Helper.pm
Criterion Covered Total %
condition 8 9 88.8


and 3 conditions

line !l l&&!r l&&r condition
17 3 2 1 @args > 1 and $args[1] =~ /^[\d\.]+$/
29 3 1 1 @args > 2 and $args[2] =~ /^[\d\.]+$/

or 3 conditions

line l !l&&r !l&&!r condition
72 26 1 0 $DOGSTATSD ||= 'DataDog::DogStatsd'->new('host', $ENV{'DATADOG_AGENT_HOST'}, 'port', $ENV{'DATADOG_AGENT_PORT'}, 'namespace', $ENV{'DATADOG_AGENT_NAMESPACE'})