Condition Coverage

blib/lib/Test/CPAN/Meta/JSON/Version.pm
Criterion Covered Total %
condition 66 68 97.0


and 3 conditions

line !l l&&!r l&&r condition
448 2 1 25 $$data{'meta-spec'} && $$data{'meta-spec'}{'version'}
543 0 44 8 defined $data and not ref $data
715 5 15 37 $value and $known_specs{$$self{'spec'}} eq $value
716 5 5 10 $value and $known_urls{$value}
751 12 523 0 defined $value and $value || $value =~ /0/
836 6 9 157 $value and exists $$licenses{$value}
840 6 4 5 $value and $$self{'spec'} < 2
853 6 1 30 $key and $key =~ /^[a-z]+$/i
7 6 24 $key and $key =~ /^[a-z]+$/i and $key =~ /[A-Z]/
864 6 30 83 $key and $key =~ /^([a-z][-_a-z]*)$/
865 6 24 6 $key and $key =~ /^x_([a-z][-_a-z]*)$/i
876 6 18 48 $key and $key =~ /^([a-z][_a-z]+)$/i
887 6 12 579 $key and $key =~ /^[A-Za-z0-9_]+(::[A-Za-z0-9_]+)*$/
917 1 6 3 $key and $key =~ /^[a-z]+$/i
7 1 2 $key and $key =~ /^[a-z]+$/i and $key =~ /[A-Z]/
930 1 16 2 $key and $key =~ /^x_([a-z][-_a-z]*)$/i
942 1 5 47 length $key and grep {$key eq $_;} @valid_phases
954 1 5 58 length $key and grep {$key eq $_;} @valid_relations

or 2 conditions

line l !l condition
898 22 3 $$self{'data'}{'version'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
728 411 6 6 $value or $value =~ /^0$/
737 6 6 6 $value or $value =~ /^0$/
751 330 187 6 $value || $value =~ /0/
764 572 193 6 $value or $value =~ /0/