Branch Coverage

blib/lib/Treex/PML/Backend/CSTS/Fs2csts.pm
Criterion Covered Total %
branch 0 198 0.0


line true false branch
71 0 0 if (exists $TRt{$_ . '_' . $node->{$_}}) { }
83 0 0 if ($gap ne '')
91 0 0 if $value eq ''
99 0 0 if $node->{$attr} eq ''
104 0 0 if ($tw[$i] =~ /(\d+)/) { }
116 0 0 if (length $t == 1)
127 0 0 unless ref $fsfile
134 0 0 if ($root)
135 0 0 $root->{'cstslang'} ? :
137 0 0 if ($root->{'cstssource'} ne '' or $root->{'cstsmarkup'} ne '')
163 0 0 if (ref $root)
164 0 0 if ($treeNo == 1 or $root->{'doc'} . $root->{'docid'} ne '')
165 0 0 if ($treeNo > 1)
170 0 0 $root->{'docid'} =~ /^\d+$/ ? :
172 0 0 if ($root->{'docmarkup'} =~ /\
181 0 0 $root->{'docprolog'} =~ /\([^\<*]*)/ ? :
184 0 0 $root->{'docprolog'} =~ /\([^\<*]*)/ ? :
187 0 0 $root->{'docprolog'} =~ /\([^\<*]*)/ ? :
189 0 0 if $root->{'docprolog'} =~ /\([^\<*]*)/
191 0 0 $root->{'docprolog'} =~ /\([^\<*]*)/ ? :
193 0 0 if $root->{'docprolog'} =~ /\([^\<*]*)/
194 0 0 if $root->{'docprolog'} =~ /\([^\<*]*)/
195 0 0 if $root->{'docprolog'} =~ /\([^\<*]*)/
196 0 0 if $root->{'docprolog'} =~ /\([^\<*]*)/
198 0 0 $root->{'docprolog'} =~ /\([^\<*]*)/ ? :
200 0 0 if $root->{'docprolog'} =~ /\([^\<*]*)/
202 0 0 $root->{'docprolog'} =~ /\([^\<*]*)/ ? :
204 0 0 if $root->{'docprolog'} =~ /\([^\<*]*)/
206 0 0 $root->{'docprolog'} =~ /\([^\<*]*)/ ? :
209 0 0 $root->{'docprolog'} =~ /\([^\<*]*)/ ? :
213 0 0 if ($treeNo == 1 or $root->{'chap'})
214 0 0 unless $treeNo == 1 or $root->{'doc'} . $root->{'docid'} ne ''
217 0 0 if ($root->{'para'} or $treeNo == 1)
218 0 0 $root->{'para'} =~ /(\d+)/ ? :
223 0 0 if ($compatibility_mode) { }
229 0 0 if ($root->{'form'} =~ /alt/) { }
239 0 0 if ($node->{'origf'} ne $node->{'form'} or $node->{'origfkind'} and $node->{'origfkind'} ne 'same')
242 0 0 $#w > $#k ? :
244 0 0 if ($k[$i] and $k[$i] ne 'same') { }
254 0 0 if (index($node->{'ord'}, '.') >= $[) { }
255 0 0 $node->{'del'} =~ /^(?:ELID|ELEX|EXPN|TRANSF)/i ? :
256 0 0 $node->{'TID'} ne '' ? :
259 0 0 if ($compatibility_mode) { }
0 0 elsif ($node->{'form'} =~ m[^([][!"'()+,-./:;=\?`]|&(?:amp|ast|bsol|circ|commat|dollar|gt|lcub|lowbar|lsqb|lt|macron|num|percnt|rcub|rsqb|verbar);)$]) { }
260 0 0 if ($node->{'gap1'}) { }
263 0 0 unless $tags =~ /\
270 0 0 $node->{'formtype'} eq 'gen' ? :
271 0 0 $node->{'AID'} ne '' ? :
274 0 0 $node->{'formtype'} ne '' && $node->{'formtype'} ne 'lower' ? :
275 0 0 $node->{'AID'} ne '' ? :
279 0 0 if $node->{'alltags'} ne ''
280 0 0 if ($node->{'lemma'} ne '' || $node->{'tag'} ne '' and not $node->{'lemma'} eq '-' && $node->{'tag'} eq '-' or $node->{'root'} ne '' or $node->{'ending'} ne '')
285 0 0 if $node->{'root'} ne ''
286 0 0 if $node->{'root'} ne ''
294 0 0 if $$node{"rootMM_$suf"} ne ''
296 0 0 if $$node{"rootMM_$suf"} ne ''
303 0 0 if $$node{"rootMD_$suf"} ne ''
305 0 0 if $$node{"rootMD_$suf"} ne ''
308 0 0 if ($node->{'afun'} and $node->{'afun'} ne '???')
312 0 0 if /./
314 0 0 $afun_atrs ne '' ? :
324 0 0 if ($node->{'dsp'} =~ /(DSPP|DSPI|DSP)/)
327 0 0 if ($node->{'quoted'} eq 'QUOT')
328 0 0 $quot ? :
337 0 0 unless ($node->{'del'} eq 'TRANSF')
338 0 0 if ($fsfile->FS->exists('trlemma') and exists $node->{'trlemma'} and $node->{'trlemma'} ne '' or $fsfile->FS->order eq 'dord')
348 0 0 if $node->{'TR'} eq 'hide'
350 0 0 if $node->{'AIDREFS'} ne ''
353 0 0 if ($node->{'func'} ne '' or $node->{'gram'} ne '')
355 0 0 unless $node->{'gram'} =~ /^(?:---|\?\?\?)?$/
358 0 0 if $node->{'memberof'} ne '' and $node->{'memberof'} ne '???'
360 0 0 if $node->{'parenthesis'} ne '' and $node->{'parenthesis'} ne '???'
362 0 0 if $node->{'operand'} ne '' and $node->{'operand'} ne '???'
364 0 0 unless $TRt =~ /^X*$/
365 0 0 unless $node->{'tfa'} =~ /^(?:---|\?\?\?)?$/
366 0 0 if $node->{'dord'} ne ''
367 0 0 if $node->{'fw'} ne ''
368 0 0 if $node->{'phraseme'} ne ''
369 0 0 if $node->{'frameid'} ne ''
371 0 0 if $node->{'framere'} ne ''
372 0 0 if ($gov eq 'govTR' or not defined $gov and $fsfile->FS->order eq 'dord') { }
376 0 0 if $node->{'govTR'} ne ''
393 0 0 if $$node{"MTR_$1"} eq 'hide'
395 0 0 if $$node{"MAIDREFS_$1"} ne ''
403 0 0 if $node->{'ord'} ne ''
404 0 0 if ($node->{'TID'} eq '')
405 0 0 if (defined $gov and $gov ne 'ordorig' or not defined $gov and $fsfile->FS->order eq 'dord') { }
408 0 0 if $node->{'ordorig'} ne ''
410 0 0 if $export_dependency || $node->parent->{'ord'} ne '0' and $node->parent->{'ord'} ne ''
413 0 0 unless (index($node->{'ord'}, '.') >= $[)
416 0 0 if ($gov ne $_)
421 0 0 if ($gov =~ /^govMD_(.*)$/)
424 0 0 $$node{"wMDg_$1"} ne '' ? :
427 0 0 if (join('', map({$$node{"wsd$_"};} 's', 'ewn', 'ili', 'iliOffset')) ne '')
440 0 0 if ($gov ne 'x_' . $name)
442 0 0 if $node->{$_} ne ''
445 0 0 if ($gov =~ /^x_(.*)$/)
448 0 0 if ($preserve_err1 and $node->{'err1'} ne '')
452 0 0 if $node->{'nospace'}