Branch Coverage

blib/lib/WWW/Scraper/ISBN/WHSmith_Driver.pm
Criterion Covered Total %
branch 13 24 54.1


line true false branch
93 0 2 if not $ean or length $isbn == 13 and $isbn ne $ean or length $isbn == 10 and $isbn ne $self->convert_to_isbn10($ean)
108 0 2 if $@ or not $mech->success or not $mech->content
113 0 2 if $html =~ /Sorry, no products were found/is
117 0 2 if $url =~ /Error.aspx/is
133 0 2 unless $$data{'binding'}
139 2 0 if ($$data{'image'})
149 0 2 if $$data{'width'}
150 0 2 if $$data{'height'}
151 2 0 if $$data{'weight'}
153 2 0 if ($$data{'author'})
163 0 2 unless defined $data
168 6 22 unless defined $$data{$_}