Branch Coverage

blib/lib/Treex/PML/Schema/Decl.pm
Criterion Covered Total %
branch 44 100 44.0


line true false branch
102 1819 1070 if ($self->{'-decl'}) { }
827 243 elsif (my $resolved = $self->{'-resolved'}) { }
243 0 elsif (my $type_ref = $self->{'type'}) { }
108 243 0 if ($schema) { }
110 0 243 if ($no_resolve) { }
243 0 elsif ($type) { }
137 17 259 defined $self->{'role'} && $self->{'role'} eq '#KNIT' ? :
165 7 10 if (my $resolved = $self->{'-resolved'}) { }
10 0 elsif (my $type_ref = $self->{'type'}) { }
169 10 0 if ($schema)
173 10 0 $type ? :
0 10 $no_resolve ? :
189 0 0 if ($path =~ m[^!([^/]+)]) { }
268 4 208 if ($sub = $decl->{'structure'}) { }
0 208 elsif ($sub = $decl->{'container'}) { }
0 208 elsif ($sub = $decl->{'sequence'}) { }
4 204 elsif ($sub = $decl->{'list'}) { }
100 104 elsif ($sub = $decl->{'alt'}) { }
2 102 elsif ($sub = $decl->{'choice'}) { }
98 4 elsif ($sub = $decl->{'cdata'}) { }
0 4 elsif (exists $decl->{'constant'}) { }
272 4 0 if (my $members = $sub->{'member'})
284 0 104 if (not $mdecl->{'-decl'} and $mdecl->{'role'} eq '#KNIT')
294 0 0 if (my $members = $sub->{'attribute'})
313 0 0 if (my $members = $sub->{'element'})
332 0 4 if (not $sub->{'-decl'} and $sub->{'role'} eq '#KNIT')
344 2 0 if (ref $sub eq 'ARRAY') { }
0 0 elsif (ref $sub) { }
347 0 226 ref $_ eq 'HASH' ? :
353 0 0 if (ref $sub->{'value'} eq 'ARRAY')
369 0 0 unless (ref $sub)
378 212 0 unless (exists $sub->{'-schema'} and exists $sub->{'-parent'})
379 108 104 unless $sub->{'-schema'}
380 212 0 unless $sub->{'-parent'}
401 0 0 defined $path ? :
404 0 0 unless ref $type
406 0 0 if ($decl_is == 1 or $decl_is == 2 or $decl_is == 11 or $decl_is == 12 or $decl_is == 13)
411 0 0 if ($type = $type->get_content_decl) { }
418 0 0 if ($decl_is == 3) { }
0 0 elsif ($decl_is == 4) { }
425 0 0 $cdecl && $type->get_role ne '#CHILDNODES' ? :
440 0 0 if ($self->get_decl_type == 13)
443 0 0 unless $self->get_role eq '#NODE'
445 0 0 if ($ch)
447 0 0 if ($ch_is == 12)
451 0 0 if ($ch_is == 5) { }
0 0 elsif ($ch_is == 6) { }
515 781 14540 if (ref $self->{$d})
519 163 618 if $d eq 'attribute'
525 2433 28272 if (exists $self->{$d})