Branch Coverage

Bio/TreeIO/NewickParser.pm
Criterion Covered Total %
branch 49 60 81.6


line true false branch
73 3 123 unless $newick =~ /;/
87 4627 18508 if ($state == 1) { }
4627 13881 elsif ($state == 2) { }
4627 9254 elsif ($state == 3) { }
4627 4627 elsif ($state == 4) { }
4627 0 elsif ($state == 5) { }
0 0 elsif ($state == 13) { }
92 2223 2404 if ($token eq '(') { }
93 0 2223 if $debug
102 2488 2139 unless ($token =~ /[\[\:\,\)\;]/)
104 4 2484 if (not $leaf_flag and $self->param('internal_node_id') eq 'bootstrap')
115 0 2488 if $debug
120 4131 496 if ($token eq ':') { }
15 481 elsif ($token eq '[') { }
133 478 4149 if ($token =~ /\[\&\&NHX/) { }
4 4145 elsif ($token =~ /\[/) { }
138 478 0 if ($1)
159 4 0 if ($token =~ /\[(\S+)\]/)
167 2223 2404 if ($token eq ')') { }
2278 126 elsif ($token eq ',') { }
126 0 elsif ($token eq ';') { }
172 8 2215 if (defined $token and $token eq '[') { }
193 0 126 if $bracket_level ne 0
209 0 126 if ($self->_eventHandler->within_element('tree'))
242 126 18097 unless length $$string
251 62666 14054 if ($pos >= 0)
252 18097 44569 unless defined $index
253 6791 55875 if $pos < $index
256 0 18097 unless (defined $index)
263 10996 7101 if ($index == 0) { }