Condition Coverage

lib/XML/Compile/Translate/Template.pm
Criterion Covered Total %
condition 107 174 61.4


and 3 conditions

line !l l&&!r l&&r condition
64 30 88 40 $as eq 'WRITER' and $self->{'_output'} eq 'XML'
128 30 55 $as eq 'READER' and $self->{'_output'} eq 'PERL'
157 39 1 0 $max eq 'unbounded' && $min == 0
5 35 0 $max ne 'unbounded' && $max == 1 && $min == 0
5 0 35 $max ne 'unbounded' && $max == 1 && $min == 1
164 1 4 35 $max ne 'unbounded' and $max == 1
180 75 4 1 $max eq 'unbounded' && $min == 0
14 61 4 $max ne 'unbounded' && $max == 1 && $min == 0
14 0 61 $max ne 'unbounded' && $max == 1 && $min == 1
246 18 12 0 not $is_pseudo_type and $recurse_type{$type}
255 18 12 0 not $is_pseudo_type and $reuse_type{$type}
498 0 0 0 /^ $label (.*)/ and $show = $1
504 5 0 1 $processed->{'occur'} and $processed->{'occur'} eq 'ABSTRACT'
568 0 0 0 $max eq 'unbounded' && $min == 0
0 0 0 $max ne 'unbounded' && $max == 1 && $min == 0
0 0 0 $max ne 'unbounded' && $max == 1 && $min == 1
584 0 3 0 $replace and @$replace > 1
587 0 3 0 $replace and grep {$_ eq 'SKIP';} @$replace
692 32 19 54 $ast->{'_TYPE'} and $args->{'show_type'}
694 42 0 12 $pref =~ /^[aiou]/i && !($pref =~ /^(uni|eu)/i)
700 32 17 56 $ast->{'struct'} and $args->{'show_struct'}
708 76 9 20 $ast->{'occur'} and $args->{'show_occur'}
710 100 2 3 $ast->{'facets'} and $args->{'show_facets'}
736 10 11 3 @subs and $subs[-1] =~ /[}\]]\,\s*$/
753 0 102 3 defined $tag and not $tag =~ /^[\w_][\w\d_]*$/
873 8 17 17 $ast->{'struct'} and $args->{'show_struct'}
879 32 5 5 $ast->{'occur'} and $args->{'show_occur'}
881 38 2 2 $ast->{'facets'} and $args->{'show_facets'}
886 12 30 0 defined $ast->{'kind'} and $ast->{'kind'} eq 'union'
930 12 15 15 $ast->{'_TYPE'} and $args->{'show_type'}

or 2 conditions

line l !l condition
56 0 19 $args{'output_style'} || 1
295 1 0 $simple{'example'} || 'Hello, World!'
497 0 0 $processed->{'struct'} || []
512 1 0 $processed->{'example'} || '...'
551 0 0 $yes ||= []
0 0 $no ||= []
561 0 0 $yes ||= []
0 0 $no ||= []
666 1 0 $ast->{$nsdecl} || '(none)'
752 102 3 $ast->{'tag'} || ''
759 75 30 $ast->{'kind'} || ''
853 0 1 $ast->{'xmlns:xsi'} ||= 'http://www.w3.org/2001/XMLSchema-instance'

or 3 conditions

line l !l&&r !l&&!r condition
163 0 5 0 $data->{'occur'} ||= $occur
185 0 19 0 $data->{'occur'} ||= $occur
186 5 10 65 $max eq 'unbounded' || $max > 1
246 0 0 30 not $is_pseudo_type and $recurse_type{$type} or $recurse_tag{$tag}
255 0 0 30 not $is_pseudo_type and $reuse_type{$type} or $reuse_tag{$tag}
512 3 2 0 $example_nest ||= $processed->{'kind'} eq 'simple' ? $processed->{'example'} || '...' : '{...}'
573 0 0 0 $data->{'occur'} ||= $occur
574 0 0 0 $max eq 'unbounded' || $max > 1
582 0 3 0 $before or $replace
3 0 0 $before or $replace or $after
647 13 0 0 $ast->{'_NAME'} || $ast->{'tag'}
736 65 5 19 $sub[0] =~ /^\s*[#{]/ or @subs and $subs[-1] =~ /[}\]]\,\s*$/
760 0 0 59 $kind eq 'complex' or $kind eq 'mixed'
773 0 0 3 $subs[-1] =~ /\#\s/ or $self->{'_style'} == 2
809 40 2 17 $example =~ /^[+-]?\d+(?:\.\d+)?$/ or $example =~ /^\$/
2 1 16 $example =~ /^[+-]?\d+(?:\.\d+)?$/ or $example =~ /^\$/ or $example =~ /^bless\b/
1 1 15 $example =~ /^[+-]?\d+(?:\.\d+)?$/ or $example =~ /^\$/ or $example =~ /^bless\b/ or $example =~ /^\$?[\w:]*\-\>/
1 3 12 $example =~ /^[+-]?\d+(?:\.\d+)?$/ or $example =~ /^\$/ or $example =~ /^bless\b/ or $example =~ /^\$?[\w:]*\-\>/ or $example =~ /^\{.*\}$/
3 0 12 $example =~ /^[+-]?\d+(?:\.\d+)?$/ or $example =~ /^\$/ or $example =~ /^bless\b/ or $example =~ /^\$?[\w:]*\-\>/ or $example =~ /^\{.*\}$/ or $example =~ /^\[.*\]$/
909 10 2 28 ref $elem eq 'BLOCK' or ref $elem eq 'REP-BLOCK'