Condition Coverage

blib/lib/ExtUtils/Constant/Base.pm
Criterion Covered Total %
condition 102 159 64.1


and 3 conditions

line !l l&&!r l&&r condition
10 1 0 0 $] < 5.007 && $] > 5.0055
80 0 0 139 defined $macro and $macro ne ''
0 24 115 defined $macro and $macro ne '' and $macro ne '1'
92 0 0 20 defined $macro and $macro ne ''
0 0 20 defined $macro and $macro ne '' and $macro ne '1'
104 0 0 116 defined $macro and $macro ne ''
0 20 96 defined $macro and $macro ne '' and $macro ne '1'
159 3 0 5 defined $checked_at and $checked_at == 0
167 29 14 23 $len < 3 and defined $checked_at
182 29 0 14 $len == 2 and not defined $checked_at
17 1 11 $len == 3 and defined $checked_at
18 5 6 $len == 3 and defined $checked_at and $checked_at == 2
189 17 1 5 $len == 3 and defined $checked_at
18 0 5 $len == 3 and defined $checked_at and $checked_at == 1
197 8 7 3 defined $checked_at && $len == $checked_at + 1
264 21 0 45 $type eq $default_type and length $_->{'name'}
21 1 44 $type eq $default_type and length $_->{'name'} and length $_->{'name'} == $_->{'name'} =~ tr/0-9A-Z_a-z//
1 0 44 $type eq $default_type and length $_->{'name'} and length $_->{'name'} == $_->{'name'} =~ tr/0-9A-Z_a-z// and not defined $_->{'macro'}
1 0 44 $type eq $default_type and length $_->{'name'} and length $_->{'name'} == $_->{'name'} =~ tr/0-9A-Z_a-z// and not defined $_->{'macro'} and not defined $_->{'value'}
0 1 43 $type eq $default_type and length $_->{'name'} and length $_->{'name'} == $_->{'name'} =~ tr/0-9A-Z_a-z// and not defined $_->{'macro'} and not defined $_->{'value'} and not defined $_->{'default'}
1 0 43 $type eq $default_type and length $_->{'name'} and length $_->{'name'} == $_->{'name'} =~ tr/0-9A-Z_a-z// and not defined $_->{'macro'} and not defined $_->{'value'} and not defined $_->{'default'} and not defined $_->{'pre'}
1 0 43 $type eq $default_type and length $_->{'name'} and length $_->{'name'} == $_->{'name'} =~ tr/0-9A-Z_a-z// and not defined $_->{'macro'} and not defined $_->{'value'} and not defined $_->{'default'} and not defined $_->{'pre'} and not defined $_->{'post'}
0 0 43 $type eq $default_type and length $_->{'name'} and length $_->{'name'} == $_->{'name'} =~ tr/0-9A-Z_a-z// and not defined $_->{'macro'} and not defined $_->{'value'} and not defined $_->{'default'} and not defined $_->{'pre'} and not defined $_->{'post'} and not defined $_->{'def_pre'}
0 0 43 $type eq $default_type and length $_->{'name'} and length $_->{'name'} == $_->{'name'} =~ tr/0-9A-Z_a-z// and not defined $_->{'macro'} and not defined $_->{'value'} and not defined $_->{'default'} and not defined $_->{'pre'} and not defined $_->{'post'} and not defined $_->{'def_pre'} and not defined $_->{'def_post'}
0 0 43 $type eq $default_type and length $_->{'name'} and length $_->{'name'} == $_->{'name'} =~ tr/0-9A-Z_a-z// and not defined $_->{'macro'} and not defined $_->{'value'} and not defined $_->{'default'} and not defined $_->{'pre'} and not defined $_->{'post'} and not defined $_->{'def_pre'} and not defined $_->{'def_post'} and not defined $_->{'weight'}
409 0 0 73 defined $macro and $macro ne ''
0 16 57 defined $macro and $macro ne '' and $macro ne '1'
466 4 5 2 $yes and $no
561 10 17 6 $rms == $best[0] and $max - $min < $best[1]
571 11 1 2 $offset == 0 && $namelen > 2
698 21 16 0 defined $macro and $macro eq $name
700 15 22 0 defined $value and $value eq $name
728 5 1 0 exists $items->{$name} and ref $items->{$name} ne 'ARRAY'

or 2 conditions

line l !l condition
147 71 0 $indent || 4
238 0 7 $indent || 0
341 0 74 $post ||= ''
394 73 0 $indent || 6
434 60 11 $indent || 4
494 14 0 $indent || 2
591 0 7 $r->{'weight'} || 0
0 7 $l->{'weight'} || 0
889 17 0 $package ||= 'Foo'
890 16 1 $subname ||= 'constant'
907 0 7 $breakout ||= 3
911 0 1 $what || ''

or 3 conditions

line l !l&&r !l&&!r condition
159 5 0 3 defined $checked_at and $checked_at == 0 or $len == 0
182 14 6 23 $len == 2 and not defined $checked_at or $len == 3 and defined $checked_at and $checked_at == 2
245 71 0 0 $_->{'type'} || $default_type
439 7 4 0 $yes || $no
561 16 6 27 $rms < $best[0] or $rms == $best[0] and $max - $min < $best[1]
586 1 0 0 $ExtUtils::Constant::Base::a->[0] || $- > [1]
587 1 0 0 $ExtUtils::Constant::Base::b->[0] || $- > [1]
694 35 2 0 $type ||= $default_type
715 0 0 0 ref $self || $self
719 84 0 7 $name =~ tr/\000-\177// == length $name or $] < 5.0055
84 1 6 $name =~ tr/\000-\177// == length $name or $] < 5.0055 or $args->{'disable_utf8_duplication'}
908 6 1 0 $default_type ||= $self->default_type