Condition Coverage

blib/lib/PAGI/Server/EventValidator.pm
Criterion Covered Total %
condition 24 54 44.4


and 3 conditions

line !l l&&!r l&&r condition
47 1 1 4 defined $event->{'status'} and $event->{'status'} =~ /^\d+$/
50 1 0 3 exists $event->{'headers'} and defined $event->{'headers'}
69 4 0 1 exists $event->{'offset'} and defined $event->{'offset'}
75 3 0 1 exists $event->{'length'} and defined $event->{'length'}
85 1 0 2 exists $event->{'headers'} and defined $event->{'headers'}
123 0 0 0 exists $event->{'headers'} and defined $event->{'headers'}
145 1 0 2 exists $event->{'code'} and defined $event->{'code'}
158 0 1 2 defined $event->{'interval'} and $event->{'interval'} =~ /^[\d.]+$/
168 0 0 0 defined $event->{'status'} and $event->{'status'} =~ /^\d+$/
171 0 0 0 exists $event->{'headers'} and defined $event->{'headers'}
181 0 0 0 exists $event->{'more'} and defined $event->{'more'}
214 0 0 0 exists $event->{'status'} and defined $event->{'status'}
220 0 0 0 exists $event->{'headers'} and defined $event->{'headers'}
233 0 1 2 defined $event->{'data'} and not ref $event->{'data'}
243 0 1 1 defined $event->{'comment'} and not ref $event->{'comment'}
253 0 1 1 defined $event->{'interval'} and $event->{'interval'} =~ /^[\d.]+$/

or 2 conditions

line l !l condition
26 17 0 $event->{'type'} // ""
97 11 0 $event->{'type'} // ""
193 10 0 $event->{'type'} // ""