Condition Coverage

blib/lib/CPAN/Meta/Converter.pm
Criterion Covered Total %
condition 70 109 64.2


and 3 conditions

line !l l&&!r l&&r condition
105 57 6 376 defined $_[0] && length $_[0]
111 5 0 496 defined $gen and length $gen
377 0 0 12031 defined $mod and length $mod
415 0 0 0 ref $element eq '' and length $element
423 0 0 6013 defined $v && length $v
428 6001 0 12 _is_module_name($v) and not version::is_lax($v)
480 22 0 63 $prereqs and ref $prereqs eq 'HASH'
486 188 0 127 $relation and ref $relation eq 'HASH'
573 0 0 25 $element and ref $element eq 'HASH'
579 35 0 25 $element and ref $element eq 'HASH'
635 0 0 575 defined $_ && length $_
694 22 0 38 $resources and ref $resources eq 'HASH'
717 30 0 1 $meta->{'license_url'} and not $resources->{'license'}
741 104 0 32 $element and $element =~ /\A(?:stable|testing|unstable)\z/
764 319 0 120 defined $element and ref $element eq 'HASH'
782 13966 655 43 $is_fragment and $key eq 'generated_by'
785 0 0 14664 ref $fcn and ref $fcn eq 'CODE'
795 5999 4302 428 $drop_list and grep {$key eq $_;} @$drop_list
1354 59 3 432 defined $spec and ref $spec eq 'HASH'
1358 0 6 426 defined $v and $v =~ /^\d+(?:\.\d+)?$/
1359 0 16 410 defined $v and grep {$v eq $_;} keys %known_specs
1360 0 5 11 defined $v and grep {$v == $_;} keys %known_specs

or 2 conditions

line l !l condition
109 501 0 'CPAN::Meta::Converter'->VERSION || ''
281 12 0 $license_downgrade_map{lc $_} or 'unknown'
289 25 2 $license_downgrade_map{lc $element->[0]} || 'unknown'
293 0 0 $license_downgrade_map{lc $element} || 'unknown'
514 22 11 _extract_prereqs($_[2]{'prereqs'}, ('test', 'requires')) || {}
515 31 2 _extract_prereqs($_[2]{'prereqs'}, ('build', 'requires')) || {}
716 1 30 $meta->{'resources'} || {}
747 67 37 $meta->{'version'} || ''
792 1563 1284 $spec->{':custom'} || \&CPAN::Meta::Converter::_keep
1354 23 39 $default || '1.0'
1366 0 6 $default || '1.2'

or 3 conditions

line l !l&&r !l&&!r condition
322 21 0 73 $meta->{'no_index'} || $meta->{'private'}
390 0 0 1619 $element eq 'undef' or $element eq ''
423 0 0 6013 not defined $v && length $v or $v eq 'undef'
0 0 6013 not defined $v && length $v or $v eq 'undef' or $v eq ''
780 1563 406 14664 $key eq ':custom' or $key eq ':drop'
1421 251 0 0 $args->{'version'} || $HIGHEST
1496 5 36 254 $key =~ /^x_/i or $key eq 'meta-spec'