| blib/lib/WWW/Scraper/ISBN/Waterstones_Driver.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 11 | 20 | 55.0 |
| line | true | false | branch |
|---|---|---|---|
| 92 | 0 | 3 | if not $ean or length $isbn == 13 and $isbn ne $ean or length $isbn == 10 and $isbn ne $self->convert_to_isbn10($ean) |
| 102 | 0 | 3 | if $@ or not $mech->success or not $mech->content |
| 112 | 1 | 2 | if $html =~ m[Sorry! We did not find any results for]is |
| 115 | 0 | 2 | if $html =~ /Exception was UseCaseError: \d+/is |
| 135 | 0 | 2 | unless defined $data |
| 139 | 8 | 0 | if $$data{$_} |
| 143 | 2 | 0 | if $$data{'title'} |
| 144 | 2 | 0 | if $$data{'description'} |
| 146 | 2 | 0 | if ($$data{'image'}) |
| 157 | 0 | 22 | unless defined $$data{$_} |