Condition Coverage

blib/lib/CGI/Ex.pm
Criterion Covered Total %
condition 34 110 30.9


and 3 conditions

line !l l&&!r l&&r condition
264 1 4 5 @_ && ref $_[0]
272 8 0 2 $charset and $charset =~ /^[\w\-\.\:\+]+$/
503 0 0 0 $js_file and not $js_file =~ /\.js$/i
508 0 0 0 $js_file and $js_file =~ m[^/*(\w+(?:/+\w+)*\.js)$]i
535 0 0 0 $ENV{'REQUEST_METHOD'} and $ENV{'REQUEST_METHOD'} eq "HEAD"
654 2 0 0 not $form and ref $self

or 2 conditions

line l !l condition
37 0 6 $PREFERRED_CGI_MODULE ||= "CGI"
81 16 0 shift() || die('Missing class name')
92 6 0 shift() || die('Usage: my $query = $cgix_obj->object')
152 1 0 shift() || die('Usage: $cgix_obj->set_form(\\%form)')
153 1 0 shift() || {}
169 2 0 shift() || die('Usage: $cgix_obj->make_form(\\%form)')
218 1 0 shift() || die('Usage: $cgix_obj->set_cookies(\\%cookies)')
219 1 0 shift() || {}
237 13 0 shift() || die('Usage: $cgix_obj->apache_request')
361 0 2 $args->{'-path'} ||= "/"
388 0 0 shift() || die('Usage: $cgix_obj->last_modified($time)')
390 0 0 shift() || 'Last-Modified'
436 4 0 $$m{lc $3} || 1
447 0 0 shift() || die('Usage: $cgix_obj->send_status(302 => "Bounced")')
448 0 0 shift() || die('Missing status')
476 0 0 shift() || die('Usage: $cgix_obj->send_header')
498 0 0 shift() || die('Usage: $cgix_obj->print_js($js_file)')
499 0 0 shift() || ''
562 0 10 $self->{'fill_module'} || 'CGI::Ex::Fill'
622 2 0 shift() || die('Usage: my $er = $cgix_obj->validate($form, $val_hash_or_file)')
635 0 0 shift() || die('Usage: my $ob = $cgix_obj->conf_obj($args)')
643 0 0 shift() || die('Usage: my $conf = $cgix_obj->conf_read($file)')
650 2 0 shift() || die('Usage: my $out = $cgix_obj->swap_template($file, \\%vars, $template_args)')
653 2 0 shift() || {}
660 0 2 $self->{'template_module'} || 'CGI::Ex::Template'

or 3 conditions

line l !l&&r !l&&!r condition
96 0 3 0 $PREFERRED_CGI_REQUIRED ||= do { my $file = $self->{'cgi_module'} || $PREFERRED_CGI_MODULE; $file .= ".pm"; $file =~ s[::][/]g; eval { do { require $file } }; die "Couldn't require ${PREFERRED_CGI_MODULE}: $@" if $@; 1 }
97 0 3 0 $self->{'cgi_module'} || $PREFERRED_CGI_MODULE
128 6 0 0 shift() || 'CGI::Ex'->new
137 2 2 0 shift() || $self->object
170 2 0 0 shift() || $self->get_form
198 3 0 0 shift() || 'CGI::Ex'->new
206 0 2 0 shift() || $self->object
240 0 0 13 $self->{'apache_request'} ||= &apache_request_sub()->()
291 2 0 0 shift() || 'CGI::Ex'->new
389 0 0 0 shift() || time
413 0 0 0 shift() || time
422 0 1 6 not $time or lc $time eq "now"
606 0 0 0 $args->{'form'} || $args->{'fobject'} || $args->{'fdat'} || $self->object
636 0 0 0 $self->{'conf_obj'} ||= do { require CGI::Ex::Conf; "CGI::Ex::Conf"->new(@_) }