| line | % | coverage | condition |
| 1888 | 100 | | ref $_[0] eq "HASH" or defined $_[2] |
| 1946 | 67 | | exists $schema->{'module'} and length $schema->{'module'} |
| 1951 | 33 | | exists $schema->{'invocant'} and defined $schema->{'invocant'} |
| 1979 | 50 | | $module and length $module and $module ne "builtin" |
| 1986 | 67 | | defined $module and length $module |
| 1989 | 50 | | $function ||= "run" |
| 1994 | 67 | | $iterations ||= $DEFAULT_ITERATIONS |
| 1995 | 67 | | defined $seed and $seed eq "" |
| 2003 | 33 | | $yaml_data and ref $yaml_data eq "HASH" |
| 2009 | 67 | | $outputs and ref $outputs eq "ARRAY" |
| 2022 | 50 | | exists $cases{$k} and ref $cases{$k} eq "ARRAY" and ref $yaml_corpus_data{$k} eq "ARRAY" |
| 2037 | 67 | | $schema->{'type'} and $schema->{'type'} =~ /^(integer|number|float)$/u |
| 2048 | 33 | | exists $schema->{'relationships'} and ref $schema->{'relationships'} eq "ARRAY" |
| 2060 | 0 | | $rel->{'type'} // "" |
| 2072 | 0 | | $rel->{'logic'} // "or" |
| 2122 | 100 | | $na and $nb |
| 2145 | 67 | | defined $config{$key} && $config{$key} |
| 2156 | 75 | | scalar keys %input == 1 and exists $input{'type'} and not ref $input{'type'} |
| 2196 | 100 | | $new && ref $new eq 'HASH' |
| 2220 | 67 | | keys %transforms and $config{'properties'}{'enable'} // 0 |
| 2272 | 50 | | defined $type and not ref $type and $type =~ /^(?:integer|number|float)$/u |
| 2274 | 67 | | defined $module and length $module |
| 100 | | defined $new and defined $module |
| 2292 | 33 | | $accessor{'type'} eq "getset" or $accessor{'type'} eq "getter" |
| 2307 | 100 | | defined $accessor{'type'} and $accessor{'type'} eq "getset" |
| 2313 | 67 | | defined $accessor{'type'} and $accessor{'type'} eq "getter" |
| 2324 | 33 | | defined $invocant and $invocant eq "class" |
| 60 | | A | B | C | D | dec |
|---|
| 0 | 0 | 0 | X | 0 | | 0 | 0 | 1 | 0 | 0 | | 0 | 0 | 1 | 1 | 1 | | 0 | 1 | X | X | 1 | | 1 | X | X | X | 1 |
| $function eq "new" or $function eq "import" or defined $invocant and $invocant eq "class" and not defined $new |
| 2347 | 100 | | $output{'type'} // "" |
| 2364 | 100 | | defined $accessor{'type'} and $accessor{'type'} eq "getter" |
| 2378 | 67 | | defined $$code and $config{'check_accessors'} // 1 |
| 2389 | 75 | | defined $accessor{'type'} and $accessor{'type'} eq "getset" and defined $accessor{'property'} |
| 2397 | 67 | | defined $$code and $config{'check_accessors'} // 1 |
| 2413 | 33 | | ref $inputs eq 'HASH' && $inputs->{'_STATUS'} // "OK" |
| 2437 | 33 | | $input_str eq "undef" and not $config{'test_undef'} |
| 2443 | 0 | | $_ // "" |
| 2446 | 0 | | $_ // "" |
| 2449 | 0 | | $_ // "" |
| 2452 | 0 | | $output{'type'} // "" |
| 2483 | 50 | | $_ // "" |
| 2486 | 50 | | $output{'type'} // "" |
| 2549 | 67 | | $config{'properties'}{'trials'} // $DEFAULT_PROPERTY_TRIALS |
| 2631 | 100 | | $BUILTINS{lc $name} // 0 |
| 2681 | 67 | | exists $schema->{$LEGACY_PERL_KEY_1} or exists $schema->{$LEGACY_PERL_KEY_2} |
| 2731 | 67 | | defined $schema->{$section} and $schema->{$section} eq "undef" |
| 2737 | 67 | | ref $schema->{$section} || $schema->{$section} |
| 2773 | 100 | | defined $schema->{'module'} or defined $schema->{'function'} |
| 2779 | 100 | | defined $schema->{'input'} or defined $schema->{'output'} |
| 2784 | 100 | | $schema->{'input'} and ref $schema->{'input'} ne "HASH" |
| 2800 | 67 | | exists $schema->{'transforms'} and ref $schema->{'transforms'} eq "HASH" |
| 2840 | 100 | | $allow_keys and not exists $element->{'type'} |
| 2860 | 67 | | not ref $element->{'type'} and _valid_nested_type($element->{'type'}) |
| 2862 | 75 | | $element->{'type'} eq "object" and not defined $element->{'isa'} and not defined $element->{'can'} |
| 2864 | 67 | | $element->{'type'} eq "arrayref" or $element->{'type'} eq "array" |
| 2876 | 33 | | defined $type and not ref $type |
| 2877 | 33 | | $type eq "array" or $type eq "coderef" |
| 2894 | 100 | | ref $spec eq "HASH" and defined $spec->{'sample_max'} |
| 2896 | 33 | | not ref $spec->{'sample_max'} and $spec->{'sample_max'} =~ /\A\d+(?:\.\d+)?\z/u |
| 2898 | 67 | | defined $spec->{'max'} and $spec->{'sample_max'} > $spec->{'max'} |
| 2900 | 67 | | defined $spec->{'min'} and $spec->{'sample_max'} < $spec->{'min'} |
| 2914 | 67 | | $spec->{'type'} eq "arrayref" or $spec->{'type'} eq "array" |
| 2951 | 100 | | ref $spec eq "HASH" and defined $spec->{'position'} |
| 2974 | 67 | | ref $spec eq "HASH" and defined $spec->{'position'} |
| 2977 | 67 | | ref $spec eq "HASH" and $spec->{'named'} |
| 3027 | 100 | | $spec->{'enum'} and $spec->{'memberof'} |
| 3079 | 67 | | $prop->{'name'} and $prop->{'code'} |
| 3125 | 100 | | exists $config->{$field} and defined $config->{$field} |
| 3182 | 100 | | $VALID{$type} // 0 |
| 3214 | 100 | | defined $name and length $name |
| 3283 | 100 | | $schema_file and not $mod_info |
| 3296 | 33 | | $ENV{$ENV_TEST_VERBOSE} || $ENV{$ENV_GENERATOR_VERBOSE} |
| 3307 | 0 | | $mod_info->{'version'} || 'unknown' |
| 0 | | $mod_info->{'file'} // "an unknown location" |
| 3322 | 0 | | $Module::Load::Conditional::ERROR || 'unknown error' |
| 3483 | 100 | | $href and ref $href eq "HASH" |
| 3493 | 67 | | defined $def and ref $def eq "HASH" |
| 3494 | 50 | | defined $def and not ref $def and _valid_type($def) |
| 3513 | 75 | | ref $def->{$subk} eq "ARRAY" or ref $def->{$subk} eq "Regexp" or ref $def->{$subk} eq "HASH" |
| 3527 | 100 | | $subk eq $KEY_MATCHES or $subk eq $KEY_NOMATCH |
| 3531 | 33 | | $@ or not defined $re |
| 3614 | 100 | | ref $value eq "HASH" and ($value->{'_path'} // "") =~ /^(?:file|directory)$/u |
| 100 | | $value->{'_path'} // "" |
| 3626 | 67 | | ref $value eq "HASH" and ref $value->{'_stub'} eq "HASH" |
| 3641 | 0 | | $spec->{'methods'} // {} |
| 3651 | 100 | | $href and ref $href eq "HASH" |
| 3714 | 67 | | $href and ref $href eq "HASH" |
| 3759 | 100 | | defined $input_spec and ref $input_spec eq "HASH" |
| 4034 | 75 | | not defined $input_spec or not ref $input_spec and $input_spec eq "undef" |
| 4047 | 50 | | $transform->{'output'} // {} |
| 4059 | 33 | | exists $transform->{'properties'} and ref $transform->{'properties'} eq "ARRAY" |
| 4097 | 33 | | defined $gen and length $gen |
| 4112 | 33 | | $module and $module ne $MODULE_BUILTIN |
| 67 | | $module and defined $new |
| 4152 | 100 | | $output_spec->{'_STATUS'} // "" |
| 4153 | 100 | | $output_spec->{'_STATUS'} // "" |
| 4162 | 33 | | $config->{'properties'}{'trials'} // $DEFAULT_PROPERTY_TRIALS |
| 4620 | 100 | | defined $spec and ref $spec eq "HASH" |
| 4623 | 33 | | $spec->{'type'} || $DEFAULT_FIELD_TYPE |
| 4630 | 100 | | $type eq "string" and defined $spec->{'semantic'} |
| 4658 | 100 | | defined $min || defined $max |
| 4677 | 100 | | $type eq "number" or $type eq "float" |
| 4681 | 100 | | defined $min || defined $max |
| 4728 | 100 | | $spec->{'min'} // 0 |
| 4729 | 67 | | $spec->{'max'} // $DEFAULT_MAX_STRING_LEN |
| 4744 | 33 | | $@ or not defined $compiled |
| 4749 | 50 | | $mods // "" |
| 4774 | 50 | | $spec->{'min'} // 0 |
| 4775 | 33 | | $spec->{'max'} // $DEFAULT_MAX_COLLECTION_SIZE |
| 4785 | 100 | | $spec->{'min'} // 0 |
| 4786 | 67 | | $spec->{'max'} // $DEFAULT_MAX_COLLECTION_SIZE |
| 4821 | 100 | | +($output_spec // {})->{'type'} // "" |
| 100 | | $output_spec // {} |
| 4823 | 100 | | $out_type eq 'number' || $out_type eq 'integer' || $out_type eq 'float' |
| 4849 | 100 | | +($output_spec // {})->{'type'} // "" |
| 100 | | $output_spec // {} |
| 4886 | 100 | | $input_spec // {} |
| 4887 | 100 | | $output_spec // {} |
| 4916 | 67 | | defined $spec and ref $spec eq "HASH" |
| 4969 | 100 | | defined $properties and ref $properties eq "ARRAY" |
| 5045 | 67 | | not ref $input_spec and $input_spec eq "undef" |
| 5049 | 50 | | $output_spec //= {} |
| 5123 | 0 | | $@ or not defined $compiled |
| 5127 | 0 | | $mods // "" |
| 5144 | 75 | | $type eq "number" or $type eq "integer" or $type eq "float" |
| 5158 | 100 | | $output_spec->{'type'} // "" |
| 5251 | 33 | | $module and $module ne $MODULE_BUILTIN |
| 33 | | $module and defined $new |
| 5271 | 100 | | $prop_def->{'name'} || 'custom_property' |
| 5273 | 67 | | $prop_def->{'description'} || "Custom property: $prop_name" |
| 5282 | 33 | | $prop_code =~ /\$/u or $prop_code =~ /\w+/u |