Condition Coverage

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

line%coveragecondition
118467
ABdec
0X0
100
111
$_[0] and $_[0] eq __PACKAGE__
1231100
ABCdec
0000
0011
01X1
1XX1
$config{$field} eq "false" or $config{$field} eq "off" or $config{$field} eq "no"
25
ABCdec
0000
0011
01X1
1XX1
$config{$field} eq "true" or $config{$field} eq "on" or $config{$field} eq "yes"
12470
Adec
00
11
$guess || 'builtin'
125067
ABdec
0X0
100
111
$module and $module ne "builtin"
125550
Adec
00
11
$function ||= "run"
1256100
Adec
00
11
$iterations ||= 50
125733
ABdec
0X0
100
111
defined $seed and $seed eq ""
126533
ABdec
0X0
100
111
$yaml_data and ref $yaml_data eq "HASH"
127167
ABdec
0X0
100
111
$outputs and ref $outputs eq "ARRAY"
128550
ABCdec
0XX0
10X0
1100
1111
exists $cases{$k} and ref $cases{$k} eq "ARRAY" and ref $yaml_corpus_data{$k} eq "ARRAY"
130767
ABdec
0X0
100
111
defined $config{$key} && $config{$key}
131875
ABCdec
0XX0
10X0
1100
1111
scalar keys %input == 1 and exists $input{'type'} and not ref $input{'type'}
1334100
ABdec
0X0
100
111
$new && ref $new eq 'HASH'
135567
ABdec
0X0
100
111
keys %transforms and $config{'properties'}{'enable'} // 0
140433
ABdec
0X0
100
111
ref $inputs eq 'HASH' && $inputs->{'_STATUS'} // "OK"
142533
ABdec
0X0
100
111
$input_str eq "undef" and not $config{'test_undefs'}
14310
Adec
00
11
$_ // ""
14340
Adec
00
11
$_ // ""
14370
Adec
00
11
$_ // ""
145150
Adec
00
11
$_ // ""
1491100
Adec
00
11
$config{'properties'}{'trials'} // 1000
152925
ABCdec
0000
0011
01X1
1XX1
defined $config->{'$module'} or defined $config->{'our $module'} or not defined $config->{'module'}
154167
ABdec
0X0
100
111
defined $schema->{$section} and $schema->{$section} ne "undef"
154533
ABdec
0X0
100
111
ref $schema->{$section} and length $schema->{$section}
155933
ABdec
000
011
1X1
defined $config->{'module'} or defined $config->{'function'}
1564100
ABdec
000
011
1X1
defined $config->{'input'} or defined $config->{'output'}
156867
ABdec
0X0
100
111
$config->{'input'} and ref $config->{'input'} ne "HASH"
1592100
ABdec
0X0
100
111
ref $spec eq "HASH" and defined $spec->{'position'}
161033
ABdec
0X0
100
111
ref $spec eq "HASH" and defined $spec->{'position'}
162967
ABdec
0X0
100
111
ref $spec eq "HASH" and defined $spec->{'semantic'}
163967
ABdec
0X0
100
111
exists $config->{'transforms'} and ref $config->{'transforms'} eq "HASH"
16600
ABdec
0X0
100
111
$prop->{'name'} and $prop->{'code'}
167733
ABdec
000
011
1X1
$type eq 'string' || $type eq 'boolean' || $type eq 'integer' || $type eq 'number' || $type eq 'float' || $type eq 'hashref' || $type eq 'arrayref' || $type eq 'object'
170733
ABdec
000
011
1X1
$ENV{'TEST_VERBOSE'} or $ENV{'GENERATOR_VERBOSE'}
17090
Adec
00
11
$mod_info->{'version'} || 'unknown'
17220
ABdec
000
011
1X1
$ENV{'TEST_VERBOSE'} or $ENV{'GENERATOR_VERBOSE'}
176933
ABdec
0X0
100
111
$href and ref $href eq "HASH"
177250
Adec
00
11
$href->{$k} // {}
17780
ABdec
000
011
1X1
ref $def->{$subk} eq "ARRAY" or ref $def->{$subk} eq "Regexp"
178233
ABdec
000
011
1X1
$subk eq "matches" or $subk eq "nomatch"
179533
ABdec
0X0
100
111
$href and ref $href eq "HASH"
180233
ABdec
0X0
100
111
$href and ref $href eq "HASH"
184633
ABdec
0X0
100
111
not ref $input_spec and $input_spec eq "undef"
185933
ABdec
0X0
100
111
exists $transform->{'properties'} and ref $transform->{'properties'} eq "ARRAY"
191750
Adec
00
11
$output_spec->{'_STATUS'} // ""
192550
Adec
00
11
$config->{'properties'}{'trials'} // 1000
19630
ABdec
0X0
100
111
$module and $module ne "builtin"
0
ABdec
0X0
100
111
$module and defined $new
19940
Adec
00
11
$prop_def->{'name'} || 'custom_property'
19960
ABdec
000
011
1X1
$prop_def->{'description'} || "Custom property: $prop_name"
20040
ABdec
000
011
1X1
$prop_code =~ /\$/u or $prop_code =~ /\w+/u
203633
ABdec
0X0
100
111
not ref $input_spec and $input_spec eq "undef"
210425
ABCdec
0000
0011
01X1
1XX1
$type eq "number" or $type eq "integer" or $type eq "float"
211350
Adec
00
11
$output_spec->{'type'} // ""
249750
Adec
00
11
$spec->{'type'} || 'string'
250033
ABdec
0X0
100
111
$type eq "string" and defined $spec->{'semantic'}
251733
ABdec
000
011
1X1
$type eq "number" or $type eq "float"
25210
ABdec
000
011
1X1
defined $min || defined $max
253667
ABdec
000
011
1X1
defined $min || defined $max
25740
Adec
00
11
$spec->{'min'} // 0
25750
Adec
00
11
$spec->{'max'} // 100
25960
Adec
00
11
$spec->{'min'} // 0
25970
Adec
00
11
$spec->{'max'} // 10
26020
Adec
00
11
$spec->{'min'} // 0
26030
Adec
00
11
$spec->{'max'} // 10
261950
Adec
00
11
$output_spec->{'type'} // ""
262033
ABdec
000
011
1X1
$out_type eq 'number' || $out_type eq 'integer' || $out_type eq 'float'
262650
Adec
00
11
$output_spec->{'type'} // ""