Branch Coverage

blib/lib/Farly/Rule/Expander.pm
Criterion Covered Total %
branch 32 44 72.7


line true false branch
15 0 3 unless defined $fw
18 0 3 unless $fw->isa('Farly::Object::List')
57 66 0 if ($ce->matches($RULE)) { }
59 6 60 if $ce->has_defined('COMMENT')
62 36 18 if ($ce->get('PROTOCOL')->equals($IP) or $ce->get('PROTOCOL')->equals($TCP) or $ce->get('PROTOCOL')->equals($UDP))
70 18 24 unless ($ce->has_defined('SRC_PORT'))
77 6 36 unless ($ce->has_defined('DST_PORT'))
84 21 39 if ($ce->get('PROTOCOL')->equals($IP) or $ce->get('PROTOCOL')->equals($ICMP))
90 9 12 if (not $ce->has_defined('ICMP_TYPE'))
121 0 51 if ($@)
165 53 1163 if ($value->isa('Farly::Object::Ref')) { }
53 1110 elsif ($value->isa('Farly::Object::List')) { }
71 1039 elsif ($value->isa('Farly::Object')) { }
171 0 53 unless (defined $actual)
204 0 71 if ($value->matches($COMMENT))
210 0 71 if ($value->matches($VIP)) { }
10 61 elsif ($value->matches($SERVICE)) { }
61 0 elsif ($value->has_defined('OBJECT')) { }
235 66 177 if ($is_expanded)
248 20 20 if ($service_object->has_defined($key))
260 0 0 if ($key eq 'DST_IP') { }
0 0 elsif ($key eq 'DST_PORT') { }