Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
451 2 2 29 $$data{'meta-spec'} && $$data{'meta-spec'}{'version'}
546 0 46 0 defined $data and not ref $data
718 5 15 37 $value and $known_specs{$$self{'spec'}} eq $value
719 5 5 10 $value and $known_urls{$value}
754 12 723 0 defined $value and $value || $value =~ /0/
839 6 7 167 $value and exists $$licenses{$value}
843 6 2 5 $value and $$self{'spec'} < 2
856 6 1 30 $key and $key =~ /^[a-z]+$/i
7 6 24 $key and $key =~ /^[a-z]+$/i and $key =~ /[A-Z]/
867 6 30 83 $key and $key =~ /^([a-z][-_a-z]*)$/
868 6 24 6 $key and $key =~ /^x_([a-z][-_a-z]*)$/i
879 6 18 58 $key and $key =~ /^([a-z][_a-z]+)$/i
890 6 12 779 $key and $key =~ /^[A-Za-z0-9_]+(::[A-Za-z0-9_]+)*$/
920 1 6 3 $key and $key =~ /^[a-z]+$/i
7 1 2 $key and $key =~ /^[a-z]+$/i and $key =~ /[A-Z]/
933 1 16 2 $key and $key =~ /^x_([a-z][-_a-z]*)$/i
945 1 7 85 length $key and grep {$key eq $_;} @valid_phases
957 1 7 106 length $key and grep {$key eq $_;} @valid_relations

or 2 conditions

line l !l condition
901 32 3 $$self{'data'}{'version'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
731 513 6 6 $value or $value =~ /^0$/
740 6 6 6 $value or $value =~ /^0$/
754 400 317 6 $value || $value =~ /0/
767 660 323 6 $value or $value =~ /0/