Branch Coverage

blib/lib/Lilith.pm
Criterion Covered Total %
branch 0 142 0.0


line true false branch
127 0 0 unless (defined $opts{'dsn'})
131 0 0 unless (defined $opts{'user'})
135 0 0 unless (defined $opts{'sagan'})
139 0 0 unless (defined $opts{'suricata'})
143 0 0 unless (defined $opts{'sid_ignore'})
148 0 0 unless (defined $opts{'class_ignore'})
153 0 0 unless (defined $opts{'suricata_sid_ignore'})
158 0 0 unless (defined $opts{'suricata_class_ignore'})
163 0 0 unless (defined $opts{'sagan_sid_ignore'})
168 0 0 unless (defined $opts{'sagan_class_ignore'})
301 0 0 if ($@)
309 0 0 unless (defined $item->{'instance'})
314 0 0 unless (defined $item->{'type'})
318 0 0 unless (defined $item->{'eve'})
335 0 0 if ($@)
341 0 0 if ($@)
346 0 0 if (defined $json and defined $json->{'event_type'} and $json->{'event_type'} eq "alert")
359 0 0 if ($_[3]{'type'} eq 'suricata') { }
0 0 elsif ($_[3]{'type'} eq 'sagan') { }
407 0 0 if ($@)
514 0 0 unless (defined $opts{'go_back_minutes'})
527 0 0 if (defined $self->{'suricata_sid_ignore'}[0])
533 0 0 if (defined $self->{'sagan_sid_ignore'}[0])
539 0 0 if (defined $self->{'sagan_class_ignore'}[0])
542 0 0 if (defined $self->{'rev_class_map'}{$item}) { }
0 0 elsif (defined $self->{'lc_rev_class_map'}{$item}) { }
554 0 0 if (defined $self->{'suricata_class_ignore'}[0])
557 0 0 if (defined $self->{'rev_class_map'}{$item}) { }
0 0 elsif (defined $self->{'lc_rev_class_map'}{$item}) { }
596 0 0 if ($@)
613 0 0 if ($self->{'debug'})
636 0 0 if ($self->{'debug'})
647 0 0 if ($@)
678 0 0 unless (defined $class)
682 0 0 if (defined $self->{'lc_class_map'}{lc $class})
702 0 0 unless (defined $class)
706 0 0 if (defined $self->{'snmp_class_map'}{lc $class})
830 0 0 if (not defined $opts{'table'}) { }
834 0 0 if ($opts{'table'} ne "suricata" and $opts{'table'} ne "sagan")
839 0 0 if (not defined $opts{'go_back_minutes'}) { }
843 0 0 unless ($opts{'go_back_minutes'} =~ /^[0-9]+$/)
848 0 0 if (defined $opts{'limit'} and not $opts{'limit'} =~ /^[0-9]+$/)
852 0 0 if (defined $opts{'offset'} and not $opts{'offset'} =~ /^[0-9]+$/)
856 0 0 if (defined $opts{'order_by'} and not $opts{'order_by'} =~ /^[\_a-zA-Z]+$/)
860 0 0 if (defined $opts{'order_dir'} and $opts{'order_dir'} ne 'ASC' and $opts{'order_dir'} ne 'DESC') { }
0 0 elsif (not defined $opts{'order_dir'}) { }
867 0 0 unless (defined $opts{'order_by'})
872 0 0 if ($opts{'table'} eq "sagan")
889 0 0 if (defined $opts{$var_to_check} and $opts{$var_to_check} =~ /[\\\']/)
908 0 0 if ($item eq $opts{'order_by'})
913 0 0 unless ($valid_order_by)
926 0 0 if (defined $opts{'no_time'} and $opts{'no_time'}) { }
941 0 0 if (defined $opts{$item})
953 0 0 if (defined $opts{$item})
963 0 0 if ($arg =~ /^[0-9]+$/) { }
0 0 elsif ($arg =~ /^\<\=[0-9]+$/) { }
0 0 elsif ($arg =~ /^\<[0-9]+$/) { }
0 0 elsif ($arg =~ /^\>\=[0-9]+$/) { }
0 0 elsif ($arg =~ /^\>[0-9]+$/) { }
0 0 elsif ($arg =~ /^\![0-9]+$/) { }
0 0 elsif ($arg =~ /^$/) { }
1006 0 0 if (defined $opts{$item})
1007 0 0 if (defined $opts{$item . '_like'} and $opts{$item . '_like'}) { }
1008 0 0 if (defined $opts{$item} . '_not' and not $opts{$item . '_not'}) { }
1016 0 0 if (defined $opts{$item} . '_not' and not $opts{$item . '_not'}) { }
1030 0 0 if (defined $opts{'ip'})
1034 0 0 if (defined $opts{'port'})
1042 0 0 if (defined $opts{'order_by'})
1046 0 0 if (defined $opts{'linit'})
1050 0 0 if (defined $opts{'offset'})
1059 0 0 if ($self->{'debug'})