Condition Coverage

blib/lib/Net/PcapWriter/IP.pm
Criterion Covered Total %
condition 6 14 42.8


and 3 conditions

line !l l&&!r l&&r condition
104 0 0 3 $do_chksum and defined $chksum_offset

or 2 conditions

line l !l condition
35 7 0 inet_pton(2, $src) || die("no IPv4 $src")
7 0 inet_pton(2, $dst) || die("no IPv4 $dst")
93 7 0 inet_pton(10, $src) || die("no IPv6 $src")
7 0 inet_pton(10, $dst) || die("no IPv6 $dst")

or 3 conditions

line l !l&&r !l&&!r condition
22 7 0 0 eval { do { 'Socket'->import('inet_pton'); inet_pton(2, '127.0.0.1'); inet_pton(10, '::1'); 1 } } or eval { do { require Socket6; 'Socket6'->import('inet_pton'); inet_pton(2, '127.0.0.1'); inet_pton(10, '::1'); 1 } }