Condition Coverage

blib/lib/YATT/Lite/VFS.pm
Criterion Covered Total %
condition 45 67 67.1


and 3 conditions

line !l l&&!r l&&r condition
182 6 130 23 $item and $item->isa($vfs->Folder)
249 145 3 302 ref $item and UNIVERSAL::isa($item, 'YATT::Lite::VFS::Item')
257 0 24 16 not $vfs->{'cf_no_mro_c3'} and $dir->{'cf_entns'}
268 0 21 50 not $vfs->{'cf_no_mro_c3'} and $item->{'cf_entns'}
293 10 9 9 $super->{'cf_parent'} and $file->{'cf_parent'} == $super->{'cf_parent'}
302 11 0 660 $file->{'cf_entns'} and &mro::get_mro($file->{'cf_entns'}) eq 'c3'
328 0 0 2 defined $_ and not $dup{$_}++
395 0 15 4 defined $kind and my $sub = $file->can("declare_$kind")
485 189 88 67 my $path = $folder->{'cf_path'} and not defined $folder->{'cf_name'}

or 2 conditions

line l !l condition
247 450 61 $dir->{'Item'} //= {}
285 465 216 $folder->{'cf_base'} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
61 84 0 0 $vfs->{'cf_ext_public'} ||= $vfs->default_ext_public
84 0 0 $vfs->{'cf_ext_private'} ||= $vfs->default_ext_private
73 22 0 62 $spec->[0] eq 'data' or not $root->{'cf_path'}
101 0 5 0 $kind //= -d $path ? 'dir' : 'file'
203 557 48 23 $_[0]->lookup_1(@_[1 .. $#_]) // $_[0]->lookup_base(@_[1 .. $#_])
231 72 0 151 $file->{'cf_path'} // $file->{'cf_name'}
249 302 5 143 ref $item and UNIVERSAL::isa($item, 'YATT::Lite::VFS::Item') or $vfs->{'cf_no_auto_create'}
380 19 3 0 $file->{'cf_path'} or $file->{'cf_string'}
436 0 0 0 $folder->{'Item'}{$name} ||= $vfs->create('data', {}, 'name', $name, 'parent', $folder)
449 69 0 15 $rest{'entns'} //= $vfs->{'cf_entns'}
458 0 83 0 $vfs->{'cf_cache'}{$primary} ||= do { $rest{'entns'} //= $vfs->{'cf_entns'}; $vfs->fixup_created(\@_, $vfs->can("vfs_$kind")->()->new(%rest, 'path', $primary, 'type', $kind)) }
460 50 0 33 $rest{'entns'} //= $vfs->{'cf_entns'}