Condition Coverage

blib/lib/XML/Smart.pm
Criterion Covered Total %
condition 82 168 48.8


and 3 conditions

line !l l&&!r l&&r condition
221 127 2 144 $_[0] && !($_[0] =~ /^(?:uper|low|arg|on|no|use)\w+$/i)
261 1355 0 147 $#_ == 0 and not ref $_[0]
796 0 0 0 ref $$pointer{$Key} eq 'ARRAY' and $#{$$pointer{$Key};} == 0
849 6 0 0 ref $$pointer{$Key} eq 'ARRAY' and $#{$$pointer{$Key};} > 0
886 6 0 0 ref $$pointer{$Key} eq 'ARRAY' and $#{$$pointer{$Key};} > 0
919 9 0 3 $$nodes{$key} and $$nodes{$key} =~ /^(\w+,\d+),(\d*)/
934 0 0 6 $#keys == 0 and $keys[0] eq 'CONTENT'
963 0 0 6 defined $$pointer{'/order'} and ref $$pointer{'/order'} eq 'ARRAY'
988 6 0 9 $$nodes{$key} and $$nodes{$key} =~ /^\w+,\d+,(\d*)/
1015 0 0 0 $#keys == 0 and $keys[0] eq 'CONTENT'
1066 0 0 0 $#keys == 0 and $keys[0] eq 'CONTENT'
1091 0 0 3 $#keys == 0 and $keys[0] eq 'CONTENT'
1126 31 1200 0 $data and $data =~ m<[^\w\d\s!"#\$\%&'\(\)\*\+,\-\./:;<=>\?\@\[\\\]\^\`\{\|}~~$bin_string]>s || $data =~ /(\240|\351|\361|\363|\341|\374|\340|\350|\366|\343|\355|\366|\344|\372|\364|\324|\301|\342)/s
1132 31 1017 22 $data and $data =~ /<.*?>/s
1133 31 988 29 $data and $data =~ /[\r\n\t]/s
1229 75 0 27 $#_ == 0 and ref $_[0] ne 'ARRAY'
1233 69 3 3 $#_ == 1 and $_[0] eq '[@]'
1241 0 0 69 ref $_[$i] ne 'ARRAY' and ref $_[$i + 1] ne 'ARRAY'
0 0 69 ref $_[$i] ne 'ARRAY' and ref $_[$i + 1] ne 'ARRAY' and ref $_[$i + 2] ne 'ARRAY'
1295 78 81 63 $type eq 'eq' and $data eq $value
159 0 0 $type eq 'ne' and $data ne $value
159 0 0 $type eq '==' and $data == $value
159 0 0 $type eq '!=' and $data != $value
159 0 0 $type eq '<=' and $data <= $value
96 42 21 $type eq '>=' and $data >= $value
138 0 0 $type eq '<' and $data < $value
138 0 0 $type eq '>' and $data > $value
123 9 6 $type eq '=~' and $data =~ /$value/s
132 0 0 $type eq '=~i' and $data =~ /$value/is
132 0 0 $type eq '!~' and not $data =~ /$value/s
132 0 0 $type eq '!~i' and not $data =~ /$value/is
1310 39 117 63 $notwant and @hash
1358 97 0 153 defined $$$this{'content'} and not defined $content_to_return
1366 250 0 0 ref $$$this{'point'} eq 'ARRAY' and not defined $content_to_return
1370 250 0 0 ref $$$this{'point'} ne 'HASH' and not defined $content_to_return
1387 94 0 0 ref $$$this{'point'}{$key} eq 'ARRAY' and not defined $content_to_return
0 0 94 exists $$$this{'point'}{$key} and not defined $content_to_return
1409 91 0 3 wantarray and my $tie = tied $$$this{'point'}{$key}
1439 0 0 0 -e $file and not -w $file
1517 80 0 1793 $this and $$this

or 3 conditions

line l !l&&r !l&&!r condition
237 88 0 185 not $file or $file eq ''
297 225 0 1277 $array or $pointer
327 147 0 1355 $null_clone or $$saver{'null'}
638 0 0 0 $Key eq '/order' or $Key eq '/nodes'
0 0 0 $Key eq '/order' or $Key eq '/nodes' or $Key =~ m[/\.CONTENT/]
772 9 0 12 $$back{'/nodes'}{$key} or $$back{$key}->nodes_keys
796 0 0 0 not ref $$pointer{$Key} or ref $$pointer{$Key} eq 'HASH'
0 0 0 not ref $$pointer{$Key} or ref $$pointer{$Key} eq 'HASH' or ref $$pointer{$Key} eq 'ARRAY' and $#{$$pointer{$Key};} == 0
849 3 0 6 $$nodes{$Key} or ref $$pointer{$Key} eq 'HASH'
3 0 6 $$nodes{$Key} or ref $$pointer{$Key} eq 'HASH' or ref $$pointer{$Key} eq 'ARRAY' and $#{$$pointer{$Key};} > 0
886 13 0 6 $$nodes{$Key} or ref $$pointer{$Key} eq 'HASH'
13 0 6 $$nodes{$Key} or ref $$pointer{$Key} eq 'HASH' or ref $$pointer{$Key} eq 'ARRAY' and $#{$$pointer{$Key};} > 0
1057 0 0 3 not $$nodes{$key} or $$nodes{$key} eq '1'
1126 151 10 1039 $data =~ m<[^\w\d\s!"#\$\%&'\(\)\*\+,\-\./:;<=>\?\@\[\\\]\^\`\{\|}~~$bin_string]>s || $data =~ /(\240|\351|\361|\363|\341|\374|\340|\350|\366|\343|\355|\366|\344|\372|\364|\324|\301|\342)/s
1374 94 0 156 exists $$$this{'point'}{$key} or defined $content_to_return
1439 0 0 0 -d $file or -e $file and not -w $file