Branch Coverage

blib/lib/Parse/Snort.pm
Criterion Covered Total %
branch 41 42 97.6


line true false branch
117 2 12 if (ref $data eq 'HASH') { }
4 8 elsif (defined $data) { }
146 1 7 if ($rule =~ /^#/) { }
158 1 7 if ($values[1] eq '(') { }
182 9 5 if (defined $state)
185 2 12 unless (defined $self->{'state'})
256 17 10 if ($args) { }
259 7 10 if (ref $args eq 'ARRAY') { }
268 8 2 if ($args =~ /^\(/)
308 43 4 if (defined $self->get('opts'))
312 37 10 if (ref $element) { }
315 10 27 if ($val) { }
320 8 2 if ($val) { }
323 6 2 if (scalar $self->get('opts')) { }
419 28 28 exists $self->{$_} ? :
422 4 4 unless (scalar @missing)
428 6 2 if (defined $self->get('opts'))
432 86 4 defined $_->[1] ? :
437 4 4 if @missing and not $self->{'preprocessed'}
438 3 1 $self->state ? :
457 1 0 if ($self->opts)