Branch Coverage

blib/lib/IO/Tokenized.pm
Criterion Covered Total %
branch 31 56 55.3


line true false branch
29 0 1 unless defined $self
38 0 2 if flushbuffer($self)
42 2 0 if @tokens
50 2 0 unless defined ${*$self;}{'__PACKAGE__'}{'bufsize'}
53 2 0 if @_
60 2 10 if @_
83 6 8 unless length $$buffer
84 2 12 unless defined $$buffer
86 8 4 if length $$buffer
100 0 0 if ($$buffer =~ s[^(.*?$/)][]) { }
112 0 0 unless eof $self
121 2 8 unless skip($self)
123 0 8 if ($token eq '') { }
0 8 elsif ($token eq '') { }
153 0 6 if ($tok eq '')
157 0 6 if (exists $regexp{$tok})
163 2 4 if defined $func
169 2 4 exists $functions{$tok} ? :
177 8 8 unless @items
180 0 8 unless defined $value
185 0 6 if $@
195 8 8 if defined $token
199 0 0 unless length $$buffer < buffer_space($self)
202 0 0 unless defined $line
207 0 2 if $@
217 0 0 if $$buffer =~ s/^.*?(?=$resynch_re)//
219 0 0 unless defined $$buffer
223 0 2 if $@