Branch Coverage

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


line true false branch
73 3 150 unless $newick =~ /;/
87 4851 19404 if ($state == 1) { }
4851 14553 elsif ($state == 2) { }
4851 9702 elsif ($state == 3) { }
4851 4851 elsif ($state == 4) { }
4851 0 elsif ($state == 5) { }
0 0 elsif ($state == 13) { }
92 2308 2543 if ($token eq '(') { }
93 0 2308 if $debug
102 2632 2219 unless ($token =~ /[\[\:\,\)\;]/)
104 4 2628 if (not $leaf_flag and $self->param('internal_node_id') eq 'bootstrap')
115 0 2632 if $debug
120 4325 526 if ($token eq ':') { }
15 511 elsif ($token eq '[') { }
133 478 4373 if ($token =~ /\[\&\&NHX/) { }
4 4369 elsif ($token =~ /\[/) { }
138 478 0 if ($1)
159 4 0 if ($token =~ /\[(\S+)\]/)
167 2308 2543 if ($token eq ')') { }
2390 153 elsif ($token eq ',') { }
153 0 elsif ($token eq ';') { }
172 8 2300 if (defined $token and $token eq '[') { }
193 0 153 if $bracket_level ne 0
209 0 153 if ($self->_eventHandler->within_element('tree'))
242 153 18938 unless length $$string
251 65276 14986 if ($pos >= 0)
252 18938 46338 unless defined $index
253 6945 58331 if $pos < $index
256 0 18938 unless (defined $index)
263 11499 7439 if ($index == 0) { }