Branch Coverage

blib/lib/Bio/RNA/Barriers/RateMatrix.pm
Criterion Covered Total %
branch 33 74 44.5


line true false branch
65 6 5 if ($self->file_type eq 'TXT') { }
5 0 elsif ($self->file_type eq 'BIN') { }
101 0 16 if (defined $splice_to_ref)
102 0 0 unless @splice_to_rows
103 0 0 if $. != $splice_to_rows[0]
114 30 0 if &looks_like_number($_)
1 15 unless &looks_like_number($row[$. - 1]) and &all(sub {
118 0 15 unless $matrix_dim == @row
121 0 15 if defined $splice_to_ref
123 0 15 if @rate_matrix > $matrix_dim
126 0 5 if defined $splice_to_ref and @splice_to_rows > 0
130 0 5 unless &all(sub {
131 0 5 unless @rate_matrix
134 0 5 defined $splice_to_ref ? :
0 5 if @rate_matrix < (defined $splice_to_ref ? @splice_to_cols : $matrix_dim)
146 0 4 unless $max_row >= 0
176 0 5 if $read_count != $size_of_int
183 0 5 unless &all(sub {
193 1 12 if $read_count != $bytes_per_column
198 0 12 if (defined $splice_to_ref)
199 0 0 unless @splice_to_cols
200 0 0 if $i != $splice_to_cols[0]
208 0 12 if defined $splice_to_ref
213 0 4 if defined $splice_to_ref and @splice_to_cols > 0
216 0 4 unless defined $splice_to_ref or eof $input_matrix_fh
230 0 6 unless $self->has_file_name
251 0 9 unless $self->_state_is_in_bounds($from_state)
253 0 9 unless $self->_state_is_in_bounds($to_state)
282 0 0 if $connected{$j} or $self->rate_from_to($i, $j) <= 0
299 0 0 if $self->dim == @connected_indices
317 0 8 unless $self->_state_is_in_bounds($state)
321 2 4 if @states_to_keep == $self->dim
340 0 0 unless $self->_state_is_in_bounds($state)
358 2 2 if (@$kept_indices_ref == 0)
371 0 2 if $row_seen{$row}
385 0 0 unless @states_to_remove
389 0 0 unless $self->_state_is_in_bounds($state)