blib/lib/Treex/PML/Schema/Import.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 23 | 44 | 52.2 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
34 | 15 | 1 | 0 | $parent->get_decl_type == 22 and $opts->{'no_template_import'} |
1 | 15 | 0 | $parent->get_decl_type == 14 and $opts->{'no_import'} | |
50 | 0 | 13 | 0 | defined $import->{'type'} and $import->{'type'} eq '*' |
70 | 13 | 0 | 0 | defined $import->{'template'} and $import->{'template'} eq '*' |
90 | 13 | 0 | 3 | !(exists $import->{'type'} || exists $import->{'template'} || exists $import->{'root'}) || defined $import->{'root'} && $import->{'root'} eq '1' and not exists $parent->{'root'} |
0 | 0 | 3 | !(exists $import->{'type'} || exists $import->{'template'} || exists $import->{'root'}) || defined $import->{'root'} && $import->{'root'} eq '1' and not exists $parent->{'root'} and $schema->{'root'} |
line | l | !l | condition |
---|---|---|---|
30 | 16 | 0 | $target->{'URL'} || '' |
37 | 16 | 0 | $opts->{'schemas'} ||= {} |
56 | 2 | 1 | $parent->{'type'} ||= {} |
75 | 0 | 0 | $parent->{'template'} ||= {} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
34 | 0 | 0 | 16 | $parent->get_decl_type == 22 and $opts->{'no_template_import'} or $parent->get_decl_type == 14 and $opts->{'no_import'} |
50 | 0 | 0 | 3 | exists $import->{'type'} || exists $import->{'template'} || exists $import->{'root'} |
3 | 0 | 13 | not exists $import->{'type'} || exists $import->{'template'} || exists $import->{'root'} or defined $import->{'type'} and $import->{'type'} eq '*' | |
70 | 0 | 0 | 3 | exists $import->{'type'} || exists $import->{'template'} || exists $import->{'root'} |
3 | 0 | 13 | not exists $import->{'type'} || exists $import->{'template'} || exists $import->{'root'} or defined $import->{'template'} and $import->{'template'} eq '*' | |
90 | 3 | 5 | 8 | !(exists $import->{'type'} || exists $import->{'template'} || exists $import->{'root'}) || defined $import->{'root'} && $import->{'root'} eq '1' |