Condition Coverage

blib/lib/Config/Model/Itself.pm
Criterion Covered Total %
condition 53 96 55.2


and 3 conditions

line !l l&&!r l&&r condition
201 3 0 0 $application and $file->basename ne $application
261 13 27 63 $_->is_file and /\.pl$/
40 0 63 $_->is_file and /\.pl$/ and m[$read_dir/$root_model_file\b]
27 0 63 $_->is_file and /\.pl$/ and m[$read_dir/$root_model_file\b] and not m[\.d/]
331 0 0 354 defined $new_model->{$_} and $new_model->{$_} ne ''
488 0 0 65 defined $model and keys %$model
544 3 0 2 -f $_ and not /~$/
3 0 2 -f $_ and not /~$/ and not $n =~ /CVS/
0 0 2 -f $_ and not /~$/ and not $n =~ /CVS/ and not $n =~ /.(svn|orig|pod)$/
0 0 2 -f $_ and not /~$/ and not $n =~ /CVS/ and not $n =~ /.(svn|orig|pod)$/ and $n =~ m[\.d/$plugin_name]
557 0 0 2 not $load_file =~ m[^/] and -e $load_file
649 23 8 10 @include and not defined $inc_after
659 241 69 84 @include and defined $inc_after
310 76 8 @include and defined $inc_after and $inc_after eq $elt_name

or 2 conditions

line l !l condition
158 3911 0 $args{'path'} || ''
188 2 5 shift() || 0
233 2 5 delete $args{'force_load'} || 0
245 7 0 delete $args{'root_model'} || ''
358 63 0 'IO::File'->new($file) || die("Can't open ${file}: $!")
576 2 0 'IO::File'->new($load_file) || die("Can't open ${load_file}: $!")
625 0 1 shift() || ''
637 41 0 shift() || (return '')
638 21 20 shift() || ''

or 3 conditions

line l !l&&r !l&&!r condition
183 25 40 0 $self->force_write || !$self->class_known($name) || $self->class_was_changed($name)
192 0 7 0 $read_from || $self->model_dir->parent
246 0 7 0 $apps->{$root_model_arg} || $root_model_arg
256 0 7 0 $model_dir || $dir
338 7 0 0 $model || (sort @all_models)[0]
365 867 51 63 $l =~ /^\s*#/ or $l =~ /^\s*$/
386 66 0 0 $args{'class_name'} || croak('Config::Model::Itself', ' read: undefined class name')
508 2 0 0 delete $args{'plugin_dir'} || croak('Config::Model::Itself', ' write_model_plugin: undefined plugin_dir')
510 2 0 0 delete $args{'plugin_name'} || croak('Config::Model::Itself', ' write_model_plugin: undefined plugin_name')
535 1 0 0 delete $args{'plugin_dir'} || croak('Config::Model::Itself', ' write_model_plugin: undefined plugin_dir')
537 1 0 0 delete $args{'plugin_name'} || croak('Config::Model::Itself', ' read_model_plugin: undefined plugin_name')
598 49 0 0 'IO::File'->new($wr_file, '>') || croak("Cannot open file ${wr_file}:$!")