Condition Coverage

blib/lib/Treex/PML/Instance/Writer.pm
Criterion Covered Total %
condition 67 121 55.3


and 3 conditions

line !l l&&!r l&&r condition
69 14 0 5 $cached and $handler_cache[-1][1] ne $subkey
126 19 0 0 $href eq '-' and not $fh
128 9 10 0 $config and ref(my $load_opts = $config->get_data('options/save'))
137 0 0 0 defined $href and length $href
171 9 10 0 $config and defined $transform_id
19 0 0 $config and defined $transform_id and length $transform_id
180 0 0 0 defined $out_xsl_href and length $out_xsl_href
247 19 0 0 $xsl_source and $out_xsl_href
576 4 9 1 $cdecl_type == 5 && $cdecl->is_mixed
682 0 81 7 $WITH_TREES and $decl->get_role eq '#NODE'
81 4 3 $WITH_TREES and $decl->get_role eq '#NODE' and $m->get_role eq '#CHILDNODES'
0 85 0 $WITH_TREES and $m->get_role eq '#TREES' || $mdecl->get_role eq '#TREES'
719 88 0 0 $mdecl_type == 10 and not $m->is_required
61 20 7 $mdecl_type == 6 and $mdecl->get_role eq '#KNIT'
837 55 1 25 $m->is_required and not $ignore_required
905 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'
971 0 9 9 $WITH_TREES and $decl->get_role eq '#TREES'
1009 0 29 0 $WITH_TREES and $decl->get_role eq '#TREES'

or 2 conditions

line l !l condition
52 19 0 $INDENT || 0
0 19 $VALIDATE_CDATA || 0
19 0 $SAVE_REFFILES || 0
19 0 $WITH_TREES || 0
0 19 $WRITE_SINGLE_LM || 0
0 19 $KEEP_KNIT || 0
0 19 $WRITE_SINGLE_CHILDREN_LM || 0
144 0 0 open_backend($href, 'w') || die("Cannot open $href for writing: $!")
195 0 0 $_->{'readas'} || ''
9 0 $_->{'readas'} || ''
241 19 0 $handlers{'#cleanup'} || sub { }

or 3 conditions

line l !l&&r !l&&!r condition
165 0 0 19 $ctxt->{'_refs_save'} ||= $opts->{'refs_save'}
210 0 19 0 $ctxt->{'_parser'} ||= $ctxt->_xml_parser
228 0 0 19 $opts->{'dump_handlers'} or $ENV{'PML_COMPILE_DUMP'}
338 0 0 0 -d $dir or mkdir $dir
426 0 0 3 $WRITE_SINGLE_LM or $WRITE_SINGLE_CHILDREN_LM
443 0 0 3 $WRITE_SINGLE_LM or $WRITE_SINGLE_CHILDREN_LM
536 13 112 332 $decl_type == 11 or $decl_type == 12
125 68 264 $decl_type == 11 or $decl_type == 12 or $decl_type == 1
180 31 233 $decl_type == 11 or $decl_type == 12 or $decl_type == 1 or $decl_type == 13
554 0 4 10 $cdecl_type == 10 or $cdecl_type == 3
682 1 0 84 $m->get_role eq '#TREES' || $mdecl->get_role eq '#TREES'
1146 13 112 332 $decl_type == 11 or $decl_type == 12
125 31 301 $decl_type == 11 or $decl_type == 12 or $decl_type == 13
1155 0 46 0 $mdecl ||= $decl->get_content_decl