Branch Coverage

blib/lib/Config/Model/Tester.pm
Criterion Covered Total %
branch 6 198 3.0


line true false branch
63 0 0 if ($conf_dir and $home_for_test)
74 0 0 if $conf_dir and $conf_file_name
82 0 0 if (my $setup = $t_data->{'setup'}) { }
0 0 elsif ($ex_data->is_dir) { }
0 0 elsif ($ex_data->exists) { }
87 0 0 ref $map eq 'ARRAY' ? :
0 0 ref $map eq 'HASH' ? :
89 0 0 unless (defined $destination_str)
92 0 0 if $home_for_test
96 0 0 unless $data_file->exists
99 0 0 if (ref $map eq 'ARRAY')
103 0 0 if $home_for_test
114 0 0 $conf_dir ? :
116 0 0 if $trace
118 0 0 unless dircopy($ex_data->stringify, $destination_dir->stringify)
124 0 0 unless defined $conf_dir
125 0 0 unless defined $conf_file
128 0 0 if $trace
130 0 0 unless fcopy($ex_data->stringify, $conf_file->stringify)
152 0 0 if $child->is_dir
165 0 0 if ($t->{'config_file'})
166 0 0 $conf_dir ? :
175 0 0 if (my $info = $t->{'log4perl_load_warnings'} or $main::_use_log4perl_to_warn) { }
0 0 elsif ($t->{'no_warnings'} || exists $t->{'load_warnings'} and not defined $t->{'load_warnings'}) { }
200 0 0 if (my $info = $t->{'log4perl_update_warnings'}) { }
0 0 elsif (my $uw = delete $args{'update_warnings'}) { }
216 0 0 if (defined $ret) { }
227 0 0 if $trace
242 0 0 if $trace
248 0 0 if (defined $t->{'dump_errors'})
260 0 0 if (my $info = $t->{'log4perl_dump_warnings'} or $main::_use_log4perl_to_warn) { }
0 0 elsif ($no_warnings or exists $t->{'dump_warnings'} and not defined $t->{'dump_warnings'}) { }
267 0 0 if exists $t->{'dump_warnings'}
272 0 0 if $t->{'dump_warnings'}
277 0 0 if $trace
286 0 0 ref $c eq 'ARRAY' ? :
298 0 0 ref $check_data_l eq 'ARRAY' ? :
301 0 0 ref $check_data eq 'HASH' ? :
302 0 0 ref $check_data eq 'HASH' ? :
303 0 0 @check_args ? :
307 0 0 ref $check_v_l eq 'ARRAY' ? :
309 0 0 if (ref $check_v eq 'Regexp') { }
345 0 0 ref $c eq 'ARRAY' ? :
350 0 0 ref $spec eq 'ARRAY' ? :
358 0 0 if (ref $check eq 'Regexp') { }
359 0 0 if $k =~ /$check/l
362 0 0 if $k eq $check
365 0 0 if ($invert) { }
385 0 0 if ($^O eq 'MSWin32' and my $fm = $t->{'file_mode'})
390 0 0 if (my $fm = $t->{'file_mode'})
395 0 0 if ($stat)
406 0 0 if (my $fc = $t->{'file_contents'} || $t->{'file_content'})
409 0 0 ref $t eq 'ARRAY' ? :
417 0 0 if (my $fc = $t->{'file_contents_like'})
420 0 0 ref $t eq 'ARRAY' ? :
428 0 0 if (my $fc = $t->{'file_contents_unlike'})
431 0 0 ref $t eq 'ARRAY' ? :
445 0 0 $conf_dir ? :
0 0 $t->{'setup'} ? :
449 0 0 if defined $t->{'file_check_sub'}
457 0 0 unless dircopy($wr_dir->stringify, $wr_dir2->stringify)
461 0 0 if $t->{'backend_arg'}
485 0 0 unless $config_classes
488 0 0 ref $c eq 'HASH' ? :
511 0 0 unless ($result = do "./$test_group_conf")
512 0 0 if $@
513 0 0 unless defined $result
514 0 0 unless $result
518 0 0 if (ref $result eq 'ARRAY') { }
0 0 elsif (ref $result eq 'HASH') { }
543 0 0 if ($test_suite_data->{'skip'})
554 0 0 unless (defined $test_suite_data->{'model_to_test'})
556 0 0 unless (defined $test_suite_data->{'model_to_test'})
578 0 0 if defined $conf_file_name
585 0 0 if (defined $do and not $t_name =~ /$do/l)
598 0 0 if $model->has_instance($inst_name)
602 0 0 if $t->{'backend_arg'}
623 0 0 if $t->{'update'}
625 0 0 if $t->{'load'}
628 0 0 if $t->{'check_before_fix'}
630 0 0 if $t->{'apply_fix'}
636 0 0 if $t->{'check'}
638 0 0 if $t->{'has_key'}
639 0 0 if $t->{'has_not_key'}
641 0 0 if $t->{'verify_annotation'}
649 0 0 if $ex_data->is_dir
653 0 0 if $t->{'load2'}
666 0 0 if defined $test_suite_data->{'conf_file_name'}
668 0 0 if $t->{'wr_check'}
680 0 0 if $t->{$_}
686 0 0 if ($@)
697 1 0 if (@_) { }
704 0 1 $arg =~ /t/l ? :
705 0 1 if $arg =~ /l/l
709 0 1 if ($log and -e $log4perl_user_conf_file) { }
713 0 1 $log ? :
716 0 1 if $arg =~ /e/l
734 0 0 if $test_only_app and $test_only_app ne $test_group
736 0 0 unless $model