line |
true |
false |
branch |
43
|
1 |
9 |
if (not defined $arg) { } |
|
5 |
4 |
elsif (ref $arg eq 'HASH') { } |
|
1 |
3 |
elsif (defined &openhandle($arg)) { } |
55
|
5 |
5 |
if (defined $self->{'file'} and not defined $self->{'fh'}) |
56
|
0 |
5 |
unless (-f $self->{'file'}) |
61
|
0 |
5 |
unless &Bro::Log::Parse::open(my $fh, '<', $self->{'file'}) |
65
|
1 |
2 |
unless (defined $self->{'fh'} or defined $self->{'diamond'} and $self->{'diamond'}) |
88
|
9 |
63 |
if ($firstline) |
90
|
0 |
9 |
if (length $line > 1 and substr($line, 0, 1) eq '{') |
92
|
0 |
0 |
unless $json |
95
|
0 |
0 |
if (not defined $val or ref $val ne 'HASH') |
107
|
0 |
72 |
unless ($line =~ /^#/) |
112
|
9 |
63 |
if ('#fields' eq $type) { } |
|
9 |
54 |
elsif ('#types' eq $type) { } |
137
|
0 |
28 |
if ($self->{'json_file'}) |
139
|
0 |
0 |
if (not defined $val or ref $val ne 'HASH') |
148
|
12 |
16 |
if ($line =~ /^#/) |
149
|
1 |
11 |
if ('#fields' eq shift @fields) |
161
|
0 |
16 |
unless (scalar @names == scalar @fields) |
162
|
0 |
0 |
if $removed == 0 |
168
|
80 |
240 |
if ($field eq '-') { } |
|
14 |
226 |
elsif ($field eq '(empty)') { } |
171
|
1 |
13 |
$self->{'empty_as_undef'} ? : |
184
|
0 |
103 |
if (defined $self->{'saved_line'}) |
192
|
82 |
21 |
defined $in ? : |