Condition Coverage

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

line%coveragecondition
123267
ABdec
0X0
100
111
$_[0] and $_[0] eq __PACKAGE__
124333
ABdec
000
011
1X1
ref $args or defined $_[2]
128433
ABdec
0X0
100
111
exists $schema->{'module'} and length $schema->{'module'}
131050
ABCdec
0XX0
10X0
1100
1111
$module and length $module and $module ne "builtin"
131550
Adec
00
11
$function ||= "run"
1316100
Adec
00
11
$iterations ||= 50
131733
ABdec
0X0
100
111
defined $seed and $seed eq ""
132533
ABdec
0X0
100
111
$yaml_data and ref $yaml_data eq "HASH"
133167
ABdec
0X0
100
111
$outputs and ref $outputs eq "ARRAY"
134550
ABCdec
0XX0
10X0
1100
1111
exists $cases{$k} and ref $cases{$k} eq "ARRAY" and ref $yaml_corpus_data{$k} eq "ARRAY"
136033
ABdec
0X0
100
111
$schema->{'type'} and $schema->{'type'} =~ /^(integer|number|float)$/u
138233
ABdec
0X0
100
111
$na and $nb
141167
ABdec
0X0
100
111
defined $config{$key} && $config{$key}
142275
ABCdec
0XX0
10X0
1100
1111
scalar keys %input == 1 and exists $input{'type'} and not ref $input{'type'}
1438100
ABdec
0X0
100
111
$new && ref $new eq 'HASH'
146267
ABdec
0X0
100
111
keys %transforms and $config{'properties'}{'enable'} // 0
148467
ABdec
0X0
100
111
defined $module and length $module
153233
ABdec
0X0
100
111
ref $inputs eq 'HASH' && $inputs->{'_STATUS'} // "OK"
155333
ABdec
0X0
100
111
$input_str eq "undef" and not $config{'test_undef'}
15590
Adec
00
11
$_ // ""
15620
Adec
00
11
$_ // ""
15650
Adec
00
11
$_ // ""
159950
Adec
00
11
$_ // ""
1656100
Adec
00
11
$config{'properties'}{'trials'} // 1000
169425
ABCdec
0000
0011
01X1
1XX1
defined $schema->{'$module'} or defined $schema->{'our $module'} or not defined $schema->{'module'}
170867
ABdec
0X0
100
111
defined $schema->{$section} and $schema->{$section} ne "undef"
171233
ABdec
0X0
100
111
ref $schema->{$section} and length $schema->{$section}
172633
ABdec
000
011
1X1
defined $config->{'module'} or defined $config->{'function'}
1731100
ABdec
000
011
1X1
defined $config->{'input'} or defined $config->{'output'}
173567
ABdec
0X0
100
111
$config->{'input'} and ref $config->{'input'} ne "HASH"
1764100
ABdec
0X0
100
111
ref $spec eq "HASH" and defined $spec->{'position'}
178233
ABdec
0X0
100
111
ref $spec eq "HASH" and defined $spec->{'position'}
180933
ABdec
0X0
100
111
$spec->{'enum'} and $spec->{'memberof'}
182267
ABdec
0X0
100
111
exists $config->{'transforms'} and ref $config->{'transforms'} eq "HASH"
18430
ABdec
0X0
100
111
$prop->{'name'} and $prop->{'code'}
1874100
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"
190767
ABdec
0X0
100
111
$schema_file and not $mod_info
191933
ABdec
000
011
1X1
$ENV{'TEST_VERBOSE'} or $ENV{'GENERATOR_VERBOSE'}
19210
Adec
00
11
$mod_info->{'version'} || 'unknown'
19290
Adec
00
11
$Module::Load::Conditional::ERROR || 'unknown error'
19350
ABdec
000
011
1X1
$ENV{'TEST_VERBOSE'} or $ENV{'GENERATOR_VERBOSE'}
199633
ABdec
0X0
100
111
$href and ref $href eq "HASH"
199950
Adec
00
11
$href->{$k} // {}
20050
ABdec
000
011
1X1
ref $def->{$subk} eq "ARRAY" or ref $def->{$subk} eq "Regexp"
200933
ABdec
000
011
1X1
$subk eq "matches" or $subk eq "nomatch"
202333
ABdec
0X0
100
111
$href and ref $href eq "HASH"
203033
ABdec
0X0
100
111
$href and ref $href eq "HASH"
207733
ABdec
0X0
100
111
not ref $input_spec and $input_spec eq "undef"
209033
ABdec
0X0
100
111
exists $transform->{'properties'} and ref $transform->{'properties'} eq "ARRAY"
212933
ABdec
0X0
100
111
$module and $module ne "builtin"
33
ABdec
0X0
100
111
$module and defined $new
215650
Adec
00
11
$output_spec->{'_STATUS'} // ""
215750
Adec
00
11
$output_spec->{'_STATUS'} // ""
216650
Adec
00
11
$config->{'properties'}{'trials'} // 1000
22150
ABdec
0X0
100
111
$module and $module ne "builtin"
0
ABdec
0X0
100
111
$module and defined $new
22340
Adec
00
11
$prop_def->{'name'} || 'custom_property'
22360
ABdec
000
011
1X1
$prop_def->{'description'} || "Custom property: $prop_name"
22440
ABdec
000
011
1X1
$prop_code =~ /\$/u or $prop_code =~ /\w+/u
227633
ABdec
0X0
100
111
not ref $input_spec and $input_spec eq "undef"
235025
ABCdec
0000
0011
01X1
1XX1
$type eq "number" or $type eq "integer" or $type eq "float"
235950
Adec
00
11
$output_spec->{'type'} // ""
275150
Adec
00
11
$spec->{'type'} || 'string'
275467
ABdec
0X0
100
111
$type eq "string" and defined $spec->{'semantic'}
277167
ABdec
000
011
1X1
$type eq "number" or $type eq "float"
277533
ABdec
000
011
1X1
defined $min || defined $max
279067
ABdec
000
011
1X1
defined $min || defined $max
282850
Adec
00
11
$spec->{'min'} // 0
282950
Adec
00
11
$spec->{'max'} // 100
28500
Adec
00
11
$spec->{'min'} // 0
28510
Adec
00
11
$spec->{'max'} // 10
285650
Adec
00
11
$spec->{'min'} // 0
285750
Adec
00
11
$spec->{'max'} // 10
287350
Adec
00
11
$output_spec->{'type'} // ""
287433
ABdec
000
011
1X1
$out_type eq 'number' || $out_type eq 'integer' || $out_type eq 'float'
288050
Adec
00
11
$output_spec->{'type'} // ""