Branch Coverage

Bio/SeqIO/msout.pm
Criterion Covered Total %
branch 54 62 87.1


line true false branch
114 12 0 unless (defined $self->sequence_factory)
148 12 0 if (ref $self->{'_filehandle'} eq 'GLOB') { }
190 9 54 if ($ms_info_line[$word] eq '-I') { }
9 45 elsif ($ms_info_line[$word] eq '-s') { }
197 0 9 if (not defined $pop_haplos[-1] or $pop_haplos[-1] =~ /\D/)
209 3 9 unless (@pop_haplos)
238 4 3 if (defined $self->{'SEGSITES'}) { }
302 7 7 if (defined $value)
303 1 6 unless $value =~ /^\d+$/ and $value > 0
498 4 2 if ($pops[$#pops] == 1 and not defined $self->{'NO_OUTGROUP'} and @pops > 1) { }
522 37 18 if ($last_read_hap < $pops[$pop_num]) { }
551 7 128 unless $seqstring
566 63 65 if (defined $n_sites)
570 1 62 unless $segsites <= $n_sites
592 62 65 defined $n_sites ? :
647 23 125 if ($self->{'TOT_RUN_HAPS'} == $self->{'LAST_READ_HAP_NUM'} + 1)
657 2 144 if (not defined $seqstring and $last_read_hap < $self->get_tot_haps)
692 0 18 if ($haps_to_pull == 0)
698 3 47 unless defined $seq
740 3 68 unless defined $seq
792 0 160 unless (ref $fh eq 'GLOB')
794 0 160 unless (defined $times and $times > 0)
798 28 132 if (defined $self->{'BUFFER_HAP'})
809 10 134 unless defined $data
818 0 134 if ($data eq '//')
824 35 125 if ($end_run)
843 5 30 unless (defined $data)
854 28 2 if ($data eq '//') { }
865 28 56 if ($_ eq '1') { }
28 28 elsif ($_ eq '2') { }
875 0 28 unless (defined $data)