Condition Coverage

blib/lib/Treex/PML/Instance/Writer.pm
Criterion Covered Total %
condition 69 122 56.5


and 3 conditions

line !l l&&!r l&&r condition
68 15 0 5 $cached and $handler_cache[-1][1] ne $subkey
125 21 0 0 $href eq "-" and not $fh
127 11 10 0 $config and ref(my $load_opts = $config->get_data("options/save"))
136 0 0 1 defined $href and length $href
170 10 10 0 $config and defined $transform_id
20 0 0 $config and defined $transform_id and length $transform_id
179 0 0 0 defined $out_xsl_href and length $out_xsl_href
246 20 0 0 $xsl_source and $out_xsl_href
575 5 9 1 $cdecl_type == 5 && $cdecl->is_mixed
685 0 84 7 $WITH_TREES and $decl->get_role eq "#NODE"
84 4 3 $WITH_TREES and $decl->get_role eq "#NODE" and $m->get_role eq "#CHILDNODES"
0 88 0 $WITH_TREES and $m->get_role eq '#TREES' || $mdecl->get_role eq '#TREES'
722 91 0 0 $mdecl_type == 10 and not $m->is_required
64 20 7 $mdecl_type == 6 and $mdecl->get_role eq "#KNIT"
840 58 1 25 $m->is_required and not $ignore_required
908 0 3 15 $WITH_TREES and $decl->get_role eq "#NODE"
3 6 9 $WITH_TREES and $decl->get_role eq "#NODE" and $cdecl->get_role eq "#CHILDNODES"
974 0 9 9 $WITH_TREES and $decl->get_role eq "#TREES"
1012 0 29 0 $WITH_TREES and $decl->get_role eq "#TREES"

or 2 conditions

line l !l condition
51 20 0 $INDENT || 0
0 20 $VALIDATE_CDATA || 0
20 0 $SAVE_REFFILES || 0
20 0 $WITH_TREES || 0
0 20 $WRITE_SINGLE_LM || 0
0 20 $KEEP_KNIT || 0
0 20 $WRITE_SINGLE_CHILDREN_LM || 0
143 1 0 open_backend($href, 'w') || die("Cannot open $href for writing: $!")
194 0 0 $_->{'readas'} || ''
12 0 $_->{'readas'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
164 0 0 20 $ctxt->{'_refs_save'} ||= $opts->{'refs_save'}
209 0 20 0 $ctxt->{'_parser'} ||= $ctxt->_xml_parser
227 0 0 20 $opts->{'dump_handlers'} or $ENV{'PML_COMPILE_DUMP'}
240 20 0 0 $handlers{'#cleanup'} || sub { }
337 0 0 0 -d $dir or mkdir $dir
425 0 0 3 $WRITE_SINGLE_LM or $WRITE_SINGLE_CHILDREN_LM
442 0 0 3 $WRITE_SINGLE_LM or $WRITE_SINGLE_CHILDREN_LM
535 13 115 338 $decl_type == 11 or $decl_type == 12
128 69 269 $decl_type == 11 or $decl_type == 12 or $decl_type == 1
184 31 238 $decl_type == 11 or $decl_type == 12 or $decl_type == 1 or $decl_type == 13
553 0 5 10 $cdecl_type == 10 or $cdecl_type == 3
685 1 0 87 $m->get_role eq '#TREES' || $mdecl->get_role eq '#TREES'
1149 13 115 338 $decl_type == 11 or $decl_type == 12
128 31 307 $decl_type == 11 or $decl_type == 12 or $decl_type == 13
1158 0 47 0 $mdecl ||= $decl->get_content_decl