Branch Coverage

blib/lib/WWW/Scraper/ISBN/OpenLibrary_Driver.pm
Criterion Covered Total %
branch 0 24 0.0


line true false branch
98 0 0 if $@ or not $mech->success or not $mech->content
106 0 0 unless $$code{'ISBN:' . $isbn}
112 0 0 unless $isbn eq $data->{'isbn13'} or $isbn eq $data->{'isbn10'}
129 0 0 if ($data->{'weight'} and $data->{'weight'} =~ /([\d.]+)\s*(?:lbs|pounds)/) { }
0 0 elsif ($data->{'weight'} and $data->{'weight'} =~ /([\d.]+)\s*(?:ozs|ounces)/) { }
0 0 elsif ($data->{'weight'} and $data->{'weight'} =~ /([\d.]+)\s*(?:g|grams)/) { }
140 0 0 if $@ or not $mech->success or not $mech->content
152 0 0 if $data->{'height'}
153 0 0 if $data->{'width'}
154 0 0 if $data->{'depth'}
159 0 0 unless defined $data
163 0 0 unless defined $data->{$_}