Condition Coverage

blib/lib/Captive/Portal.pm
Criterion Covered Total %
condition 10 27 37.0


and 3 conditions

line !l l&&!r l&&r condition
147 8 0 0 ref $_[0] and ref $_[0] eq 'HASH'
344 0 0 0 $$session{'STATE'} eq 'idle' and $self->match_cookie
555 0 0 1 $username and $password

or 2 conditions

line l !l condition
188 5 2 $query->path_info || ''
189 7 0 $query->remote_addr || '?.?.?.?'
385 0 0 $$session{'IP'} || ''
386 0 0 $$session{'MAC'} || ''
535 0 1 $query->user_agent || 'unknown'
775 0 2 $query->param('filter_state') || undef
776 0 2 $query->param('filter_ip') || undef
777 0 2 $query->param('filter_username') || undef
866 0 2 $sort_by ||= 'IP'