Condition Coverage

lib/PAGI/Server/EventValidator.pm
Criterion Covered Total %
condition 24 45 53.3


and 3 conditions

line !l l&&!r l&&r condition
44 1 1 4 defined $event->{'status'} and $event->{'status'} =~ /^\d+$/
47 1 0 3 exists $event->{'headers'} and defined $event->{'headers'}
66 4 0 1 exists $event->{'offset'} and defined $event->{'offset'}
72 3 0 1 exists $event->{'length'} and defined $event->{'length'}
82 1 0 2 exists $event->{'headers'} and defined $event->{'headers'}
114 0 0 0 exists $event->{'headers'} and defined $event->{'headers'}
136 1 0 2 exists $event->{'code'} and defined $event->{'code'}
149 0 1 2 defined $event->{'interval'} and $event->{'interval'} =~ /^[\d.]+$/
179 0 0 0 exists $event->{'status'} and defined $event->{'status'}
185 0 0 0 exists $event->{'headers'} and defined $event->{'headers'}
198 0 1 2 defined $event->{'data'} and not ref $event->{'data'}
208 0 1 1 defined $event->{'comment'} and not ref $event->{'comment'}
218 0 1 1 defined $event->{'interval'} and $event->{'interval'} =~ /^[\d.]+$/

or 2 conditions

line l !l condition
23 17 0 $event->{'type'} // ""
94 11 0 $event->{'type'} // ""
158 10 0 $event->{'type'} // ""