Branch Coverage

lib/App/SimulateReads/Simulator.pm
Criterion Covered Total %
branch 24 48 50.0


line true false branch
72 0 20 if ($self->seqid_weight eq 'file' and not defined $self->weight_file)
78 0 20 if ($self->count_loops_by eq 'coverage' and not defined $self->coverage) { }
0 40 elsif ($self->count_loops_by eq 'number_of_reads' and not defined $self->number_of_reads) { }
87 20 0 if $self->seqid_weight ne 'same'
132 0 20 unless %$indexed_fasta
142 0 50 if ($index_size < $read_size)
148 0 50 if ($index_size < $fragment_mean)
158 0 20 if defined $err
187 0 0 unless %$indexed_file
193 0 0 unless (exists $indexed_fasta->{$id})
197 0 0 if defined $err
278 3 5 $class eq 'App::SimulateReads::Fastq::PairedEnd' ? :
282 0 8 if ($number_of_reads <= 0 or $class eq 'App::SimulateReads::Fastq::PairedEnd' and $number_of_reads == 1)
351 0 8 $number_of_jobs == 1 ? :
360 10 4 if my $pid = $pm->start(\@files_t)
379 2 2 if $tid == $number_of_jobs
398 1710 0 unless (@_)
400 0 2280 unless $fhs[$fh_idx]->say(${$fastq_entry[$fh_idx];})
410 0 6 unless $fhs[$fh_idx]->close
424 0 4 if ($sig->signal_catched)
432 0 5 $self->output_gzip ? :
435 0 10 unless &cat($tmp_files[$i], $fh[$fh_idx])
442 0 5 unless $fh[$fh_idx]->close
449 0 10 unless unlink $file_t