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\-\.\:\+]+$/
504 0 0 0 $js_file and not $js_file =~ /\.js$/i
509 0 0 0 $js_file and $js_file =~ m[^/*(\w+(?:/+\w+)*\.js)$]i
536 0 0 0 $ENV{'REQUEST_METHOD'} and $ENV{'REQUEST_METHOD'} eq "HEAD"
655 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')
362 0 2 $args->{'-path'} ||= "/"
389 0 0 shift() || die('Usage: $cgix_obj->last_modified($time)')
391 0 0 shift() || 'Last-Modified'
437 4 0 $$m{lc $3} || 1
448 0 0 shift() || die('Usage: $cgix_obj->send_status(302 => "Bounced")')
449 0 0 shift() || die('Missing status')
477 0 0 shift() || die('Usage: $cgix_obj->send_header')
499 0 0 shift() || die('Usage: $cgix_obj->print_js($js_file)')
500 0 0 shift() || ''
563 0 10 $self->{'fill_module'} || 'CGI::Ex::Fill'
623 2 0 shift() || die('Usage: my $er = $cgix_obj->validate($form, $val_hash_or_file)')
636 0 0 shift() || die('Usage: my $ob = $cgix_obj->conf_obj($args)')
644 0 0 shift() || die('Usage: my $conf = $cgix_obj->conf_read($file)')
651 2 0 shift() || die('Usage: my $out = $cgix_obj->swap_template($file, \\%vars, $template_args)')
654 2 0 shift() || {}
661 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
390 0 0 0 shift() || time
414 0 0 0 shift() || time
423 0 1 6 not $time or lc $time eq "now"
607 0 0 0 $args->{'form'} || $args->{'fobject'} || $args->{'fdat'} || $self->object
637 0 0 0 $self->{'conf_obj'} ||= do { require CGI::Ex::Conf; "CGI::Ex::Conf"->new(@_) }