Condition Coverage

blib/lib/Log/Dispatch/Gelf.pm
Criterion Covered Total %
condition 22 26 84.6


and 3 conditions

line !l l&&!r l&&r condition
57 1 1 12 exists $socket->{'host'} and length $socket->{'host'} > 0
76 2 4 5 defined $p{'socket'} and $p{'chunked'}
4 4 1 defined $p{'socket'} and $p{'chunked'} and $p{'socket'}{'protocol'} ne "udp"

or 2 conditions

line l !l condition
51 7 7 $socket->{'protocol'} //= "udp"
62 3 10 $socket->{'port'} //= 12201
84 2 8 $p{'additional_fields'} // {}
86 1 9 $p{'short_message_sub'} // sub {

or 3 conditions

line l !l&&r !l&&!r condition
21 0 20 0 ref $proto || $proto
72 9 2 1 defined $p{'socket'} or defined $p{'send_sub'}
83 0 10 0 $p{'host'} // hostname()