Branch Coverage

Bio/Matrix/PSM/IO/mast.pm
Criterion Covered Total %
branch 50 62 80.6


line true false branch
95 0 2 unless $self->_initialize_io(@args)
98 0 2 if $file =~ /^>/
100 0 2 if $buf =~ /^/
104 2 88 if ($buf =~ /DATABASE AND MOTIFS/)
106 2 14 if ($buf =~ /DATABASE/)
112 2 14 if ($buf =~ /MOTIFS/)
120 1 1 if ($self->{'_msrctype'} ne $self->{'_dbtype'})
125 2 88 if ($buf =~ /MOTIF WIDTH BEST POSSIBLE MATCH/)
128 2 8 unless $buf =~ /\w/
138 2 86 if ($buf =~ /section i:/i)
144 0 2 unless (%instances)
150 2 84 if ($buf =~ /section ii:/i)
157 38 46 unless $buf =~ /\*{10,}/ or not $buf =~ /\w/
159 0 2 unless %instances
160 0 2 unless grep /\s+MAST\s+version\s+3/, @header
177 2 106 if $line =~ /^[\s\t*]/
180 0 106 if $line eq ''
183 0 106 unless ($len)
213 0 2 if $self->{'_end'} == 1
219 0 2 if ($line =~ /\*{10,}/)
224 2 34 if (not $line =~ /^\s/) { }
238 93 91 unless ($next =~ /\D/)
239 2 91 unless @motifs
244 90 1 $id =~ /\[/ ? :
246 49 42 $id =~ /\-\d/ ? :
247 87 4 if ($self->{'_mixquery'})
248 34 53 if $id =~ /\d+a/
249 25 62 if $id =~ /\d+b/
250 28 59 if $id =~ /\d+c/
268 87 4 if $self->{'_mixquery'}
304 0 0 unless ($matrix->get_logs_array('A'))