Branch Coverage

blib/lib/WWW/Scraper/ISBN/BookDepository_Driver.pm
Criterion Covered Total %
branch 16 32 50.0


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)
104 0 2 if $@ or not $mech->success or not $mech->content
110 0 2 if $html =~ /Sorry, there are no results for/is
130 0 2 unless $$data{'isbn13'}
131 0 2 unless $$data{'publisher'}
132 0 2 unless $$data{'pubdate'}
133 0 2 unless $$data{'pages'}
134 0 2 unless $$data{'image'}
135 0 2 unless $$data{'title'} and $$data{'author'}
146 2 0 if $$data{'publisher'}
147 2 0 if $$data{'width'}
148 2 0 if $$data{'height'}
149 2 0 if $$data{'weight'}
150 2 0 unless ($$data{'thumb'})
158 0 2 unless defined $data
163 0 32 unless defined $$data{$_}