line |
true |
false |
branch |
41
|
0 |
10 |
unless $$self{'TEMPLATE'} = 'Template'->new({%args, 'INCLUDE_PATH', $path, 'TRIM', 1}) |
63
|
0 |
3 |
unless $key =~ /port_formatter|protocol_formatter|icmp_formatter/ |
74
|
19 |
350 |
if ($value->isa('Farly::IPv4::Address')) { } |
|
27 |
323 |
elsif ($value->isa('Farly::Transport::Protocol')) { } |
|
6 |
317 |
elsif ($value->isa('Farly::Transport::PortGT')) { } |
|
3 |
314 |
elsif ($value->isa('Farly::Transport::PortLT')) { } |
|
27 |
287 |
elsif ($value->isa('Farly::Transport::Port')) { } |
|
9 |
278 |
elsif ($value->isa('Farly::Transport::PortRange')) { } |
|
28 |
250 |
elsif ($value->isa('Farly::Object::Ref')) { } |
80
|
16 |
11 |
if ($self->_text) { } |
81
|
8 |
8 |
defined $$self{'protocol_formatter'} && defined $$self{'protocol_formatter'}->as_string($value->as_string) ? : |
91
|
4 |
2 |
if ($self->_text) { } |
92
|
0 |
4 |
defined $$self{'port_formatter'} && defined $$self{'port_formatter'}->as_string($value->as_string) ? : |
102
|
2 |
1 |
if ($self->_text) { } |
103
|
1 |
1 |
defined $$self{'port_formatter'} && defined $$self{'port_formatter'}->as_string($value->as_string) ? : |
113
|
16 |
11 |
if ($self->_text) { } |
114
|
6 |
10 |
defined $$self{'port_formatter'} && defined $$self{'port_formatter'}->as_string($value->as_string) ? : |
126
|
6 |
3 |
if ($self->_text) { } |
128
|
0 |
6 |
defined $$self{'port_formatter'} && defined $$self{'port_formatter'}->as_string($value->first) ? : |
134
|
0 |
6 |
defined $$self{'port_formatter'} && defined $$self{'port_formatter'}->as_string($value->last) ? : |
185
|
3 |
56 |
if ($ce->matches($NAME)) |
193
|
3 |
53 |
if ($ce->matches($INTERFACE)) |
201
|
6 |
47 |
if ($ce->matches($ROUTE)) |
203
|
6 |
30 |
if ($key eq 'INTERFACE') |
222
|
2 |
363 |
if ($value->equals($ALL)) |
227
|
0 |
363 |
if ($value->equals($ANY_ICMP_TYPE)) |
231
|
22 |
341 |
if ($value->isa('Farly::Object::Ref')) |
233
|
12 |
10 |
if ($value->matches($GROUP_REF)) { } |
|
4 |
6 |
elsif ($value->matches($OBJECT_REF)) { } |
|
3 |
3 |
elsif ($value->matches($IF_REF)) { } |
234
|
9 |
3 |
if ($ce->get('ENTRY')->equals($RULE)) |
246
|
16 |
347 |
defined $prefix ? : |
250
|
2 |
361 |
if ($self->_text and $key eq 'ICMP_TYPE') |
252
|
1 |
1 |
defined $$self{'icmp_formatter'} && defined $$self{'icmp_formatter'}->as_string($value->as_string) ? : |
268
|
0 |
59 |
unless $self->_template->process($self->_file, $hash) |