Branch Coverage

File:blib/lib/App/Test/Generator.pm
Coverage:54.3%

line%coveragebranch
41650TFif (defined $conf_file) { }
42450TFif ($config = "Config::Abstraction"->new("config_dirs", [".", ""], "config_file", $conf_file))
426100TFif (defined $$config{"\$module"} or defined $$config{"our \$module"} or not defined $$config{"module"})
43350TFif ($config)
434100TFif exists $config->{'input'}
43550TFif (exists $config->{'output'})
43650TFunless ref $$config{"output"} eq "HASH"
43950TFif exists $config->{'config'}
440100TFif exists $config->{'cases'}
44150TFif exists $config->{'edge_cases'}
44250TFif exists $config->{'type_edge_cases'}
44450TFif exists $config->{'module'}
44550TFif exists $config->{'function'}
44650TFif exists $config->{'new'}
447100TFif exists $config->{'yaml_cases'}
44850TFif exists $config->{'seed'}
449100TFif exists $config->{'iterations'}
451100TFif exists $config->{'edge_case_array'}
46650TFif defined $seed and $seed eq ""
47250TFunless ($module)
48750TFif (defined $yaml_cases)
48850TFunless -f $yaml_cases
49150TFif ($yaml_data and ref $yaml_data eq "HASH")
49750TFunless ($outputs and ref $outputs eq "ARRAY")
50350TFif $valid_input
5110TFif (exists $cases{$k} and ref $cases{$k} eq "ARRAY" and ref $yaml_corpus_data{$k} eq "ARRAY")
52750TFunless do $file
53950TFif (my $full = "${pkg}::$v")
540100TFif (defined ${$full;}) { }
100TFelsif (@{$full;}) { }
100TFelsif (%{$full;}) { }
558100TFunless $$config{$key}
56050TFunless ref $$config{"input"} eq "HASH"
565100TFif (ref $spec) { }
56650TFunless _valid_type($$spec{"type"})
56850TFunless _valid_type($spec)
593100TFunless defined $v
59450TFif (ref $v eq "ARRAY")
59850TFif ref $v and ref $v ne "Regexp"
60150TF$v =~ /^-?\d+(\.\d+)?$/ ? :
60650TFunless $href and ref $href eq "HASH"
610100TFunless ref $def eq "HASH"
61350TFunless defined $$def{$subk}
61450TFif (ref $$def{$subk})
6150TFunless (ref $$def{$subk} eq "ARRAY" or ref $$def{$subk} eq "Regexp")
62850TFunless $href and ref $href eq "HASH"
63550TFunless $href and ref $href eq "HASH"
6390TFunless ref $aref eq "ARRAY"
65150TFunless $s =~ /\Q$l\E|\Q$r\E/
6540TFunless index($s, $d) != -1
66550TFif (scalar @edge_case_array)
67750TFif (scalar keys %input == 1 and exists $input{'type'} and not ref $input{'type'}) { }
68750TF$new && ref $new eq 'HASH' ? :
69250TFif (defined $new) { }
6940TFif ($new_code eq '') { }
70650TFif (%all_cases)
71050TFunless $inputs and ref $inputs eq "ARRAY"
71450TFif ($expected_str eq q['_STATUS:DIES']) { }
50TFelsif ($expected_str eq q['_STATUS:WARNS']) { }
72050TFif (ref $inputs eq "HASH")
72450TFif ($new) { }
7250TFif ($status eq 'DIES') { }
0TFelsif ($status eq 'WARNS') { }
73950TFif ($status eq 'DIES') { }
50TFelsif ($status eq 'WARNS') { }
75850TFif (defined $seed)
78650TFunless $tt->process(\$template, $vars, \$test)
78850TFif ($outfile) { }
78950TFunless &App::Test::Generator::open(my $fh, ">:encoding(UTF-8)", $outfile)