Branch Coverage

blib/lib/Treex/PML/Schema/Import.pm
Criterion Covered Total %
branch 17 30 56.6


line true false branch
34 0 15 if $parent->get_decl_type == 22 and $opts->{'no_template_import'} or $parent->get_decl_type == 14 and $opts->{'no_import'}
35 0 16 unless $import->{'schema'}
46 11 37 exists $import->{$_} ? :
50 3 13 if (not exists $import->{'type'} || exists $import->{'template'} || exists $import->{'root'} or defined $import->{'type'} and $import->{'type'} eq '*') { }
55 3 0 if (ref $schema->{'type'})
58 16 0 unless (exists $parent->{'type'}{$name})
66 13 0 if (ref $schema->{'type'})
70 3 13 if (not exists $import->{'type'} || exists $import->{'template'} || exists $import->{'root'} or defined $import->{'template'} and $import->{'template'} eq '*') { }
74 0 3 if (ref $schema->{'template'})
77 0 0 unless (exists $parent->{'template'}{$name})
84 0 13 if (ref $schema->{'template'})
85 0 0 unless (exists $parent->{'template'}{$name})
90 3 0 if (!(exists $import->{'type'} || exists $import->{'template'} || exists $import->{'root'}) || defined $import->{'root'} && $import->{'root'} eq '1' and not exists $parent->{'root'} and $schema->{'root'})
101 0 13 unless (exists $src_schema->{'type'}{$name})
108 4 18 if (exists $target->{'type'}{$n}) { }