Condition Coverage

blib/lib/MVC/Neaf/Route/Main.pm
Criterion Covered Total %
condition 82 116 70.6


and 3 conditions

line !l l&&!r l&&r condition
233 111 1 1 $args{'default'} and ref $args{'default'} ne "HASH"
237 209 16 0 $_ =~ /^-/ and $args{'default'}{$_} = delete $args{$_}
250 109 1 1 $args{'public'} and not $args{'description'}
430 15 5 0 defined $options{$_} and $fwd_opt{$_} = delete $options{$_}
678 389 13 0 $ret{$_} and @{$ret{$_};} = reverse(@{$ret{$_};})
704 0 1 17 ref $code and UNIVERSAL::isa($code, "CODE")
803 1 1 38 defined $name and defined $obj
819 2 0 36 &blessed($obj) and $obj->can("render")
931 11 0 2 not ref $file and defined $file
940 8 4 1 defined $name and $self->{'load_resources'}{$name}++
1774 38 9 1 $err->is_sudden and exists $self->{'on_error'}
1827 0 0 38 defined $file and -f $file

or 2 conditions

line l !l condition
265 74 32 $args{'caller'} ||= [caller 0]
311 6 1 $path || '/'
426 0 5 $options{'caller'} ||= [caller 0]
651 0 31 $opt{'caller'} ||= [caller 0]
1095 2 3 $opt{'cookie'} || 'neaf.session'
1116 5 0 $opt{'ttl'} || $sess->session_ttl || 0
1506 5 6 $code ||= sub { $_[0]; }
1742 4 0 $@ || 'unknown error'
1775 0 0 $@ || 'unknown reason'
1795 1 0 $@ || 'unknown reason'

or 3 conditions

line l !l&&r !l&&!r condition
340 0 7 0 $profile ||= $self->{'last_added'}
450 1 5 0 $self->{'global_static'} ||= do { require MVC::Neaf::X::Files; "MVC::Neaf::X::Files"->new("root", "/dev/null") }
541 9 95 0 $self->{'defaults'} ||= "MVC::Neaf::Util::Container"->new
561 426 3 0 defined $hash{$_} or delete $hash{$_}
647 1 1 9 defined $opt{'path'} or defined $opt{'exclude'}
653 11 20 0 $self->{'todo_hooks'}{$phase} ||= "MVC::Neaf::Util::Container"->new
708 3 11 0 $self->{'todo_helpers'}{$name} ||= "MVC::Neaf::Util::Container"->new("exclusive", 1)
717 1 1 5 not $name =~ /^[a-z][a-z_0-9]*/ or $name =~ /^(?:do|neaf)/
809 36 0 0 $view_alias{$obj} || $obj
819 36 1 1 &blessed($obj) and $obj->can("render") or ref $obj eq "CODE"
1101 0 0 2 delete $opt{'ttl'} || $opt{'session_ttl'}
1186 1 8 0 $self->{'error_template'}{$status} ||= "MVC::Neaf::Util::Container"->new
1255 95 75 0 $self->{'route_re'} ||= $self->_make_route_re
1260 165 86 0 $node->{'HEAD'} ||= $node->{'GET'}->clone("method", "HEAD")
1274 0 71 4 $hash ||= $self->{'route'}
1613 6 31 28 $lazy or $self->{'seen_view'}{$view}
1700 80 77 0 $self->{'pre_route_stub'}{$method} ||= "MVC::Neaf::Route::PreRoute"->new("method", $method, "parent", $self)
1738 1 51 0 $data->{'-type'} ||= $type
1789 3 5 0 $data->{'-status'} ||= $err->status
1791 5 3 0 $data->{'-content'} ||= $self->dispatch_view($req)