Condition Coverage

blib/lib/Net/Radius/Packet.pm
Criterion Covered Total %
condition 15 37 40.5


and 3 conditions

line !l l&&!r l&&r condition
145 0 0 3 $name eq $attr[$i][0] and $value eq $attr[$i][1]
328 3 0 7 defined $$self{'Dict'}->attr_has_val($_[1]) && defined $$self{'Dict'}->val_num(@_[1, 0])
364 1 0 0 defined $$self{'Dict'}->vsattr_has_val($vid, $_[1]) && defined $$self{'Dict'}->vsaval_num($vid, @_[1, 0])
480 23 1 15 defined $dict->val_has_name($_[1]) && defined $dict->val_name($_[1], $num)
502 0 0 0 defined $dict->val_has_name($_[1]) && defined $dict->val_name($_[1], $num)
525 16 0 0 $dict->vsaval_has_name($_[2], $_[1]) && $dict->vsaval_name($_[2], $_[1], $num)
548 0 0 0 $dict->vsaval_has_name($_[2], $_[1]) && $dict->vsaval_name($_[2], $_[1], $num)

or 2 conditions

line l !l condition
214 0 2 $attr || 'User-Password'
229 1 0 $attribute ||= 'User-Password'

or 3 conditions

line l !l&&r !l&&!r condition
363 1 0 0 $$self{'Dict'}->vendor_num($_[2]) || $_[2]
414 1 1 0 $$self{'Dict'}->vendor_num($vendor) || $vendor
591 0 0 40 not defined $dict->vsattr_numtype($vid, $vtype) or ref $vsaunpacker{$dict->vsattr_numtype($vid, $vtype)} ne 'CODE'
626 0 0 103 not defined $dict->attr_numtype($type) or ref $unpacker{$dict->attr_numtype($type)} ne 'CODE'