Condition Coverage

web/cgi-bin/yatt.lib/YATT/Translator/Perl.pm
Criterion Covered Total %
condition 68 117 58.1


and 3 conditions

line !l l&&!r l&&r condition
300 42 0 161 $widget->{'arg_order'} and @{$widget->{'arg_order'};}
447 21 155 35 not $node->has_parent and $node->metainfo->caller_widget->no_last_newline
666 5 0 1 $parent->is_bare_attribute and $parent->node_size == 1
668 0 0 1 @expr and ref $expr[0] eq 'SCALAR'
675 43 55 20 $args->node_size == 1 and ($args->node_flag || 0) == 0
719 81 0 35 $body->array_size and my $bodydecl = $arg_dict->{'body'}
759 4 0 5 $args->is_attribute and $args->node_name eq $key
904 16 0 35 $is_sysns and @$entns == 1
961 0 2 38 ref $var and $var->can('arg_specs')
998 0 0 0 node_size($rawNode) == 1 and node_flag($rawNode) == 0
0 0 0 node_size($rawNode) == 1 and node_flag($rawNode) == 0 and (my $nm = node_body($rawNode)) =~ /^\w+$/
1124 0 0 20 $var and not ref $name
0 1 19 $var and not ref $name and my $handler = $var->can("entmacro_$name")
1170 174 48 7 defined $body and not defined $node->node_name
1186 55 149 7 $escaped == 2 and my($codearg, @args) = $trans->find_if_codearg($scope, $node, \@entpath)
1222 0 0 0 defined $targetNode and node_body($targetNode)
1246 0 0 0 defined $targetNode and node_body($targetNode)
1261 368 11 12 defined $var->{'cf_default'} and defined(my $mode = $var->{'cf_default_mode'})
1369 4 2 39 @items == 1 and not $nvars
1484 23 7 9 $argdecl->{'arg_order'} and my(@args) = @{$argdecl->{'arg_order'};}
1579 0 101 8 $args->is_attribute and $args->is_quoted_by_element
1717 9 0 3 $args->is_attribute and $args->node_name eq 'else'
1793 0 0 3 $args->readable and $args->is_primary_attribute

or 2 conditions

line l !l condition
49 0 14 $trans->{'cf_type_map'} ||= \%TYPE_MAP
252 25 25 $prefix || ''
675 55 20 $args->node_flag || 0
1478 11 20 $argdecl->{'arg_dict'} ||= {}
11 20 $argdecl->{'arg_order'} ||= []
1629 0 5 $type[0] || ''
1759 0 0 $old->{'cf_filename'} || '(unknown)'
0 0 $old->{'cf_linenum'} || '(unknown)'
1857 4 0 $else || q['']

or 3 conditions

line l !l&&r !l&&!r condition
80 0 0 161 not defined $elpath[0] or $elpath[0] eq ''
800 0 23 228 $pkg->can($macro_name) || $trans->can($macro_name)
1095 7 0 9 $dont_call || ref $call
1195 40 0 164 $has_body or @$entns > 1
1397 0 0 0 $var->{'cf_subtype'} || $var->{'cf_varname'}
1413 1 0 0 $var->{'cf_subtype'} || $var->{'cf_varname'}
1424 0 0 4 $var->{'cf_subtype'} || $var->{'cf_varname'}
1504 34 5 1 $is_opened || $node->is_quoted_by_element
1754 1 6 0 $typename ||= $args->next_is_body ? 'html' : 'text'
1774 0 1 0 $assign[-1][1] ||= $var->gen_assignable_node($trans, $scope, $args, 1)