Condition Coverage

lib/Parse/Syslog.pm
Criterion Covered Total %
condition 33 49 67.3


and 3 conditions

line !l l&&!r l&&r condition
33 0 0 0 defined $self->{'is_dst_switch_last_hour'} and $self->{'is_dst_switch_last_hour'} == $t->[3] << 5 + $t->[2]
72 8 27 39 defined $lastmin and $lastmin->[0] == $_[1]
35 3 36 defined $lastmin and $lastmin->[0] == $_[1] and $lastmin->[1] == $_[2]
30 2 34 defined $lastmin and $lastmin->[0] == $_[1] and $lastmin->[1] == $_[2] and $lastmin->[2] == $_[3]
5 9 25 defined $lastmin and $lastmin->[0] == $_[1] and $lastmin->[1] == $_[2] and $lastmin->[2] == $_[3] and $lastmin->[3] == $_[4]
11 0 25 defined $lastmin and $lastmin->[0] == $_[1] and $lastmin->[1] == $_[2] and $lastmin->[2] == $_[3] and $lastmin->[3] == $_[4] and $lastmin->[4] == $_[5]
108 15 6 28 not $GMT || defined $self->{'dst_comp'} and defined $self->{'last_time'}
21 26 2 not $GMT || defined $self->{'dst_comp'} and defined $self->{'last_time'} and $self->{'last_time'} - $time > 1200
32 2 0 not $GMT || defined $self->{'dst_comp'} and defined $self->{'last_time'} and $self->{'last_time'} - $time > 1200 and $self->{'last_time'} - $time < 3600
119 49 0 0 defined $self->{'dst_comp_until'} and $time > $self->{'dst_comp_until'}
197 0 4 3 defined $self->{'_last_mon'} and $self->{'_last_mon'} == 11
202 0 0 1 defined $self->{'_last_mon'} and $self->{'_last_mon'} != 11
282 19 0 0 defined $self->{'repeat'} and not $self->{'repeat'}

or 2 conditions

line l !l condition
80 0 25 $self->{'dst_comp'} || 0
127 0 49 $self->{'dst_comp'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
108 15 0 34 $GMT || defined $self->{'dst_comp'}
257 59 12 0 $str =~ /^ (\S{3})\s+(\d+) # date -- 1, 2 \s (\d+):(\d+):(\d+) # time -- 3, 4, 5 (?:\s<\w+\.\w+>)? # FreeBSD's verbose-mode \s ([-\w\.\@:]+) # host -- 6 \s+ (?:\[LOG_[A-Z]+\]\s+)? # FreeBSD (.*) # text -- 7 $/x or $str =~ /^ (\d\d\d\d)-(\d\d)-(\d\d) # RFC3339 or syslog-ng ISO date -- 1, 2, 3 T (\d+):(\d+):(\d+)(?:\.\d+)? # time (optional frac_sec) -- 4, 5, 6 (Z|[\+\-]\d\d:\d\d) # TZ -- 7 \s ([-\w\.\@:]+) # host -- 8 \s+ (.*) # text -- 9 $/x