Branch Coverage

blib/lib/Bio/NEXUS/AssumptionsBlock.pm
Criterion Covered Total %
branch 53 74 71.6


line true false branch
69 2 12 unless ($type)
78 12 2 if (defined $commands and @$commands)
105 7 0 $flags =~ /vector/i ? :
106 1 6 $flags =~ /notokens/i ? :
110 6 1 if ($tokens) { }
147 6 5 unless defined $command
152 0 5 if ($value eq 'irrev.up' or $value eq 'irrev.dn')
153 0 5 if ($value eq 'dollo.up' or $value eq 'dollo.dn')
175 10 1 if (defined $opts) { }
179 8 10 if ($option eq 'deftype') { }
1 9 elsif ($option eq 'polytcount') { }
5 4 elsif ($option eq 'gapmode') { }
180 2 6 unless ($value =~ /^(unord|ord|irrev|irrev\.up|irrev\.dn|dollo|dollo\.up|dollo\.dn)$/i)
186 0 1 unless ($value =~ /^(maxsteps|minsteps)$/i)
192 1 4 unless ($value =~ /^(missing|newstate)$/i)
202 3 15 if ($is_ok == 0)
228 0 9 unless defined $option
230 7 2 if ($option =~ qr/^(?:deftype|polytcount|gapmode)$/) { }
231 5 2 if (defined $$self{'options'}{$option}) { }
239 1 1 if (defined $$self{'options'}{$option}) { }
260 4 0 if (defined $option and defined $value) { }
296 3 0 if (defined $$self{'options'}) { }
300 9 0 if (defined $value)
324 2 0 if (defined $options) { }
360 0 14 unless (shift())->{'assumptions'}
374 0 0 unless ($self->get_assumptions)
409 1 2 unless ($self->SUPER::equals($block))
414 0 2 if (@weightset1 != @weightset2)
427 0 0 unless ($weightset1[$i]->equals($weightset2[$i]))
452 3 2 if (defined $value and $value ne '')
456 2 2 if ($return_val ne '')
481 2 0 if ($assumption->is_wt)
485 0 2 unless ($assumption->_is_tokens)
489 2 0 if ($assumption->_is_vector)
497 4 0 unless $$self{'unknown'}
504 0 1 if $Bio::NEXUS::AssumptionsBlock::AUTOLOAD =~ /DESTROY$/
512 0 1 if (defined $synonym_for{$Bio::NEXUS::AssumptionsBlock::AUTOLOAD}) { }