Branch Coverage

blib/lib/Text/Bind.pm
Criterion Covered Total %
branch 21 50 42.0


line true false branch
69 0 1 if (ref $file) { }
73 0 1 unless (defined $fh)
86 25 0 if (@list < 2)
95 0 0 unless defined($_ = <$fh>)
99 0 0 if ($notone) { }
105 0 0 if defined $list[0]
121 0 25 unless defined $outfh and defined $text
128 25 0 if defined $data
138 12 0 if ($site =~ /^(\w+)\s*=\s*(.+)/) { }
150 2 10 if ($name eq 'file')
152 2 0 if (defined $incfh)
163 10 0 if ($name eq 'site')
167 9 1 if (defined $bind)
171 2 7 if (ref $bind eq 'CODE')
173 2 0 if defined &$bind
179 0 7 if (ref $bind eq 'ARRAY')
181 0 0 unless $retval
182 0 0 unless defined $tmp
184 0 0 if (ref $tmp eq 'CODE')
186 0 0 if defined &$tmp
190 0 0 if (ref $tmp and $tmp =~ /GLOB/)
196 0 0 if (ref $tmp)
210 1 6 if (ref $bind and $bind =~ /GLOB/)
222 1 5 if (ref $bind)
240 12 0 if defined $data