Branch Coverage

blib/lib/Treex/Block/Write/BaseWriter.pm
Criterion Covered Total %
branch 13 42 30.9


line true false branch
80 0 0 unless defined $self->to
87 0 1 if ($self->scenario and $self->scenario->runner and $self->scenario->runner->jobindex)
89 0 0 if (defined $self->to and $self->to ne '-' and $self->to ne '.')
103 1 0 if (defined $self->compress) { }
0 0 elsif (defined $document->compress) { }
117 0 1 $self->_compress_document($document) ? :
138 0 1 if (defined $self->path)
142 0 1 if (defined $self->file_stem)
146 0 1 if (defined $self->stem_suffix)
147 0 0 defined $self->file_stem ? :
153 1 0 if (defined $self->to and $self->to ne '.')
157 0 1 if (not defined $next_filename) { }
162 0 1 defined $self->path ? :
166 0 1 if (defined $self->substitute)
168 0 0 unless eval $eval_string
274 0 1 if (defined $self->_file_handle and !defined($self->_last_filename) || $self->_last_filename ne '-')
294 0 1 if (defined $self->_last_filename and $filename eq $self->_last_filename and not $filename =~ /__FAKE_OUTPUT__/) { }
317 1 0 if ($filename eq '-')
326 0 0 if ($filename =~ /\.gz$/) { }
0 0 elsif ($filename =~ /\.bz2$/) { }
334 0 0 if ($opn) { }