Condition Coverage

blib/lib/YATT/Lite/Factory.pm
Criterion Covered Total %
condition 43 95 45.2


and 3 conditions

line !l l&&!r l&&r condition
310 0 0 0 @path and length($dir = $pack->catdir(@path)) > length $rootdir
385 0 0 37 not $self->{'cf_allow_missing_dir'} and $self->{'cf_doc_root'}
0 37 0 not $self->{'cf_allow_missing_dir'} and $self->{'cf_doc_root'} and not -d $self->{'cf_doc_root'}
657 0 0 393 defined $path and $path ne ''
818 0 7 12 $_->[0] && $known_pkg{$_->[0]}
957 1 19 0 ref $self && $self->{'cf_binary_config'}
977 0 0 140 defined $_[0] and $_[0] ne ''

or 2 conditions

line l !l condition
188 0 0 $default{'app_base'} ||= '@ytmpl'
370 1 36 $self->{'cf_use_subpath'} //= 1
395 1 36 $self->{'cf_site_prefix'} //= ''
496 2 1 $self->{'loc2psgi_dict'} //= {}
509 3 0 $self->{'loc2psgi_dict'} //= {}
727 31 36 $self->{'tmpl_cache'} //= {}
31 36 $self->{'entns2vfs_item'} //= {}

or 3 conditions

line l !l&&r !l&&!r condition
186 0 0 0 $default{'doc_root'} ||= "$app_root/html"
233 0 0 8 $self->{'_outer_psgi_app'} // do { if (my $old = delete $self->{'_my_psgi_app'}) { delete $sub2self{$old}; } ; $self->prepare_app; my $sub = sub { $self->call(@_); } ; $self->{'_my_psgi_app'} = $sub; &weaken($self->{'_my_psgi_app'}) unless $want_object; &weaken($sub2self{$sub} = $self); '???'; $sub }
263 1 0 0 $sub->isa($pack) or $sub->isa('YATT::Lite::Factory')
307 0 0 0 $_[0] // $pack->curdir
353 0 37 0 $self->{'cf_index_name'} //= $self->default_index_name
354 0 37 0 $self->{'cf_ext_public'} //= $self->default_ext_public
355 0 37 0 $self->{'cf_ext_private'} //= $self->default_ext_private
360 0 0 0 $self->{'cf_output_encoding'} || $self->default_header_charset
0 0 0 $self->{'cf_header_charset'} //= $self->{'cf_output_encoding'} || $self->default_header_charset
362 0 0 0 $self->{'cf_output_encoding'} //= $self->compat_default_output_encoding
365 1 33 0 $self->{'cf_output_encoding'} // $self->default_header_charset
3 34 0 $self->{'cf_header_charset'} //= $self->{'cf_output_encoding'} // $self->default_header_charset
367 1 34 0 $self->{'cf_output_encoding'} // $self->default_tmpl_encoding
2 35 0 $self->{'cf_tmpl_encoding'} //= $self->{'cf_output_encoding'} // $self->default_tmpl_encoding
368 3 34 0 $self->{'cf_output_encoding'} //= $self->default_output_encoding
471 21 3 0 $self->{'loc2psgi_re'} // $self->rebuild_psgi_mount
628 199 2 0 $tmpldir //= $self->{'cf_doc_root'}
672 0 70 0 $self->{'cf_allow_missing_dir'} or -d $path
758 18 13 39 $desc //= $self->{'cf_app_base'}
911 49 0 0 $self->_extract_app_name($path, $basedir) // $self->error(q[Can't extract app_name path=%s, base=%s], $path, $basedir)