Condition Coverage

blib/lib/CPAN/Meta/Validator.pm
Criterion Covered Total %
condition 22 62 35.4


and 3 conditions

line !l l&&!r l&&r condition
721 0 0 0 $value and $value =~ /^--- #YAML:1.0/
755 0 0 714 defined $scheme and length $scheme
759 0 0 714 defined $auth and length $auth
773 0 0 380 $value and $known_specs{$self->{'spec'}} eq $value
774 0 0 0 $value and $known_urls{$value}
811 0 8381 0 defined $value and $value || $value =~ /0/
895 0 699 0 $value and exists $licenses->{$value}
908 0 0 98 $key and $key =~ /^[_a-z]+$/i
0 0 98 $key and $key =~ /^[_a-z]+$/i and $key =~ /[A-Z]/
919 0 0 202 $key and $key =~ /^x_/i
930 0 0 0 $key and $key =~ /^([a-z][_a-z]+)$/i
941 0 0 10802 $key and $key =~ /^[A-Za-z0-9_]+(::[A-Za-z0-9_]+)*$/
953 0 0 382 length $key and grep {$key eq $_;} @valid_phases
966 0 0 448 length $key and grep {$key eq $_;} @valid_relations

or 2 conditions

line l !l condition
455 667 33 eval { do { $data->{'meta-spec'}{'version'} } } || '1.0'
594 1729 0 $value || ''
730 157 2 $self->{'data'}{'version'} || ''
765 0 0 $value ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
788 4992 0 1 $value or $value =~ /^0$/
797 0 0 0 $value or $value =~ /^0$/
811 3677 4704 0 $value || $value =~ /0/
824 7062 4965 0 $value or $value =~ /0/