Branch Coverage

blib/lib/CGI/Application/Plugin/PageLookup.pm
Criterion Covered Total %
branch 43 60 71.6


line true false branch
327 0 63 if defined $$self{'__cgi_application_plugin_pagelookup'}
329 60 3 unless exists $args{'prefix'}
330 63 0 unless exists $args{'handle_notfound'}
331 63 0 unless exists $args{'expiry'}
332 0 63 unless exists $args{'remove'}
333 14 49 unless exists $args{'objects'}
334 35 28 unless exists $args{'template_params'}
335 63 0 unless exists $args{'default_lang'}
336 38 25 unless exists $args{'status_404'}
337 35 28 unless exists $args{'msg_param'}
338 63 0 unless exists $args{'charset'}
396 10 48 if (ref $page_id eq 'HASH')
397 0 10 unless exists $$page_id{'internalId'}
398 0 10 unless exists $$page_id{'lang'}
428 0 58 unless $sth->execute
432 8 50 unless ($hash_ref)
433 0 8 if $dbh->err
436 8 0 if ($args{'handle_notfound'})
443 10 40 if ref $page_id eq 'HASH'
451 105 184 if ($o =~ /^([a-zA-Z_]\w+)\./)
457 50 0 if $args{'expiry'}
461 9 66 unless $smart_objects_actually_used{$okey}
465 10 56 if (ref $ovalue eq 'CODE') { }
9 47 elsif ($self->can($ovalue)) { }
477 0 47 if $@
480 66 0 if $object
505 0 50 unless $template
523 0 0 unless $sth->execute
567 6 2 if ($page_id =~ m[^(\w\w)/])
587 14 36 unless my $changefreq = $$hash_ref{'changefreq'}