Condition Coverage

lib/PMLTQ/Suggest.pm
Criterion Covered Total %
condition 37 70 52.8


and 3 conditions

line !l l&&!r l&&r condition
40 0 0 15 PMLTQ::Suggest::Utils::apply_file_suffix($win, $pos->[1]) and $win->{'currentNode'}
58 8 0 0 $opts->{'reserved_names'} and exists $opts->{'reserved_names'}{$name}
65 15 0 0 $opts->{'reserved_names'} and exists $opts->{'reserved_names'}{$name}
78 0 14 1 $parent and exists $marked{$parent}
87 0 2 11 $parent && $parent->parent
113 0 0 15 $opts->{'id2name'} && $opts->{'id2name'}{$$node{_id_member_name($node->type)}}
130 125 0 0 $opts->{'exclude'} and $opts->{'exclude'}{$name}
193 0 2 12 $refs && $refs->{$file_id}
210 194 0 16 $mtype->get_decl_type == 7 and not UNIVERSAL::DOES::does($val, 'Treex::PML::Alt')
217 102 49 23 $mtype->get_decl_type == 8 && $mtype->get_format eq 'PMLREF'
218 0 121 53 $type and $type->get_role =~ /^#(ID|ORDER)$/ || $is_pmlref
219 30 0 23 $is_pmlref and $opts->{'id2name'}
0 0 23 $is_pmlref and $opts->{'id2name'} and $val =~ /(?:^.*?\#)?(.+)$/
0 20 3 $is_pmlref and $opts->{'id2name'} and $val =~ /(?:^.*?\#)?(.+)$/ and $opts->{'id2name'}{$1}
223 5 0 15 $target and $target->type
267 78 0 0 $opts->{'exclude'} and $opts->{'exclude'}{$n}
275 0 0 0 $opts->{'exclude'} and $opts->{'exclude'}{$n}

or 2 conditions

line l !l condition
55 8 0 $opts ||= {}
111 3 12 $opts->{'indent'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
63 6 9 0 $id_member{$t} ||= _id_member_name($t)
77 1 14 0 $parents{$parent} ||= $n
136 0 0 0 $opts->{'children'} or $opts->{'descendants'}
213 29 0 0 UNIVERSAL::DOES::does($val, 'Treex::PML::Struct') or UNIVERSAL::DOES::does($val, 'Treex::PML::Container')
218 32 21 121 $type->get_role =~ /^#(ID|ORDER)$/ || $is_pmlref