Condition Coverage

blib/lib/Config/Model/Itself.pm
Criterion Covered Total %
condition 56 105 53.3


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/]
333 0 0 351 defined $new_model->{$_} and $new_model->{$_} ne ''
389 246 0 0 $ref and ref $ref eq 'ARRAY'
400 123 0 0 $model->{'read_config'} and not $multi_backend
405 123 0 0 $model->{'write_config'} and not $multi_backend
522 0 0 65 defined $model and keys %$model
578 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]
591 0 0 2 not $load_file =~ m[^/] and -e $load_file
683 23 8 10 @include and not defined $inc_after
693 243 66 84 @include and defined $inc_after
309 76 8 @include and defined $inc_after and $inc_after eq $elt_name

or 2 conditions

line l !l condition
158 6574 0 $args{'path'} || ''
188 2 5 shift() || 0
233 2 5 delete $args{'force_load'} || 0
245 7 0 delete $args{'root_model'} || ''
360 63 0 'IO::File'->new($file) || die("Can't open ${file}: $!")
610 2 0 'IO::File'->new($load_file) || die("Can't open ${load_file}: $!")
659 0 1 shift() || ''
671 41 0 shift() || (return '')
672 21 20 shift() || ''

or 3 conditions

line l !l&&r !l&&!r condition
183 24 41 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
340 7 0 0 $model || (sort @all_models)[0]
367 867 51 63 $l =~ /^\s*#/ or $l =~ /^\s*$/
420 66 0 0 $args{'class_name'} || croak('Config::Model::Itself', ' read: undefined class name')
542 2 0 0 delete $args{'plugin_dir'} || croak('Config::Model::Itself', ' write_model_plugin: undefined plugin_dir')
544 2 0 0 delete $args{'plugin_name'} || croak('Config::Model::Itself', ' write_model_plugin: undefined plugin_name')
569 1 0 0 delete $args{'plugin_dir'} || croak('Config::Model::Itself', ' write_model_plugin: undefined plugin_dir')
571 1 0 0 delete $args{'plugin_name'} || croak('Config::Model::Itself', ' read_model_plugin: undefined plugin_name')
632 49 0 0 'IO::File'->new($wr_file, '>') || croak("Cannot open file ${wr_file}:$!")