Condition Coverage

blib/lib/Treex/PML/Schema.pm
Criterion Covered Total %
condition 116 254 45.6


and 3 conditions

line !l l&&!r l&&r condition
267 50 0 16 defined $base and length $base
277 0 66 0 defined $file and ref($schema = $opts->{'schemas'}{$file})
284 28 29 9 ref $file && $file->isa('Treex::PML::Resource::URI')
301 0 0 66 defined $version and length $version
520 69 164 0 $cmp == 0 and @my_revision || @revision
582 84 0 9 defined $type->{'type'} and length $type->{'type'}
84 0 9 defined $type->{'type'} and length $type->{'type'} and not exists $$referred{$type->{'type'}}
642 63 3 0 $opts->{'revision'} and $self->_match_revision($opts->{'revision'}) != 0
647 60 6 0 $opts->{'minimal_revision'} and $self->_match_revision($opts->{'minimal_revision'}) < 0
652 64 2 0 $opts->{'maximal_revision'} and $self->_match_revision($opts->{'maximal_revision'}) > 0
742 0 0 99 defined $path and length $path
762 0 0 139 defined $step and length $step
798 0 0 0 defined $step && length $step
814 0 0 99 $decl && $decl->get_decl_type
815 0 33 66 $decl && ($decl_is == 11 || $decl_is == 12 || $decl_is == 13 || $decl_is == 1 || $decl_is == 2)
870 0 0 22 not $decl and wantarray
929 12 1814 0 ref $opts and $opts->{'no_childnodes'}
1814 0 0 ref $opts and $opts->{'no_childnodes'} and defined $decl->{'role'}
1814 0 0 ref $opts and $opts->{'no_childnodes'} and defined $decl->{'role'} and $decl->{'role'} eq "#CHILDNODES"
951 0 0 0 defined $_ && length $_
953 0 26 8 defined $_ && length $_
955 0 0 0 defined $_ && length $_
959 367 0 0 $first and @result
963 0 0 37 defined $_ && length $_
965 624 0 0 $first and @res
971 0 0 0 defined $_ && length $_
973 28 0 0 $first and @res
977 0 0 51 defined $_ && length $_
979 48 0 0 $first and @result
983 0 41 56 defined $_ && length $_
985 55 0 0 $first and @res
989 0 15 19 defined $_ && length $_
992 0 0 0 defined $_ && length $_
1071 0 0 0 defined $log and UNIVERSAL::isa($log, "ARRAY")
1100 0 0 0 defined $log and UNIVERSAL::isa($log, "ARRAY")
1109 0 0 0 defined $path and length $path
1173 0 0 0 $no_children and $type->get_role eq "#CHILDNODES"
1174 0 0 0 not $with_LM and $decl_is == 6
0 0 0 not $with_AM and $decl_is == 7
1182 0 0 0 $no_nodes and $type->get_role eq "#NODE"
1210 0 0 0 defined $_ && length $_
1294 48 0 96 $parent_is == 4 and $decl_is != 11
1309 926 47 59 $decl_is == 6 and not $decl->{'-decl'}
973 59 0 $decl_is == 6 and not $decl->{'-decl'} and $decl->{'role'} eq "#KNIT"
1314 374 213 0 not $decl->{'-decl'} and $decl->{'role'} eq "#KNIT"
1332 0 0 0 $decl->{'-parent'} and $decl->{'-name'}
1345 499 0 0 ref $val and not exists $seen->{$val}
1352 1716 607 625 ref $val and not exists $seen->{$val}

or 2 conditions

line l !l condition
260 0 0 $more_opts ||= {}
529 11 0 $self->{'revision'} || 0
530 11 0 $self->{'revision'} || 0
641 43 23 $opts->{'revision_error'} || 'Error: wrong schema revision of %f: %e'
679 0 2 $schema_hash->{'-api_version'} ||= "2.0"
871 10 12 $self->{'-ROLE_CACHE'}{$role} ||= [$self->_find_role($role, $decl, $opts)]
1158 0 0 $opts ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
520 156 0 8 @my_revision || @revision
743 0 97 0 $path =~ s[^/][] or not $decl
757 0 42 453 $decl_is == 11 or $decl_is == 12
42 97 356 $decl_is == 11 or $decl_is == 12 or $decl_is == 13
139 0 356 $decl_is == 11 or $decl_is == 12 or $decl_is == 13 or $decl_is == 1
765 54 0 302 $decl_is == 6 or $decl_is == 7
768 54 0 0 $step eq 'LM' || $step eq '[LIST]'
0 0 0 $step eq 'AM' || $step eq '[ALT]'
0 0 54 $step =~ /^\[[-+]?\d+\]$/ or $decl_is == 6 ? $step eq 'LM' || $step eq '[LIST]' : $step eq 'AM' || $step eq '[ALT]'
798 0 0 0 not defined $step && length $step or $step eq $decl->get_name
812 0 0 0 $decl ||= $schema->get_root_decl->get_content_decl
909 0 12 0 $decl ||= $self->{'root'}
961 102 12 1336 $decl_is == 1 or $decl_is == 2
114 28 1308 $decl_is == 1 or $decl_is == 2 or $decl_is == 11
40 624 684 $decl_is == 1 or $decl_is == 2 or $decl_is == 11 or $decl_is == 12
652 55 629 $decl_is == 1 or $decl_is == 2 or $decl_is == 11 or $decl_is == 12 or $decl_is == 13
1074 0 0 0 $type ||= $schema->get_type_by_name($type)
1174 0 0 0 $decl_is == 1 or $decl_is == 2
0 0 0 $decl_is == 1 or $decl_is == 2 or $decl_is == 11
0 0 0 $decl_is == 1 or $decl_is == 2 or $decl_is == 11 or $decl_is == 12
0 0 0 $decl_is == 1 or $decl_is == 2 or $decl_is == 11 or $decl_is == 12 or $decl_is == 13
0 0 0 $decl_is == 1 or $decl_is == 2 or $decl_is == 11 or $decl_is == 12 or $decl_is == 13 or not $with_LM and $decl_is == 6
0 0 0 $decl_is == 1 or $decl_is == 2 or $decl_is == 11 or $decl_is == 12 or $decl_is == 13 or not $with_LM and $decl_is == 6 or not $with_AM and $decl_is == 7
1283 184 96 2046 $decl_is == 3 or $decl_is == 4
280 89 1957 $decl_is == 3 or $decl_is == 4 or $decl_is == 5
185 106 1851 $decl_is == 3 or $decl_is == 4 or $decl_is == 5 or $decl_is == 6
195 10 1841 $decl_is == 3 or $decl_is == 4 or $decl_is == 5 or $decl_is == 6 or $decl_is == 7
116 88 1753 $decl_is == 3 or $decl_is == 4 or $decl_is == 5 or $decl_is == 6 or $decl_is == 7 or $decl_is == 9
98 2 1751 $decl_is == 3 or $decl_is == 4 or $decl_is == 5 or $decl_is == 6 or $decl_is == 7 or $decl_is == 9 or $decl_is == 10
90 457 1294 $decl_is == 3 or $decl_is == 4 or $decl_is == 5 or $decl_is == 6 or $decl_is == 7 or $decl_is == 9 or $decl_is == 10 or $decl_is == 8
1294 93 374 147 $parent_is == 11 or $parent_is == 12
467 3 144 $parent_is == 11 or $parent_is == 12 or $parent_is == 13