Condition Coverage

blib/lib/WWW/Scraper/ISBN/Waterstones_Driver.pm
Criterion Covered Total %
condition 0 33 0.0


and 3 conditions

line !l l&&!r l&&r condition
93 0 0 0 length $isbn == 13 and $isbn ne $ean
0 0 0 length $isbn == 10 and $isbn ne $self->convert_to_isbn10($ean)

or 3 conditions

line l !l&&r !l&&!r condition
93 0 0 0 not $ean or length $isbn == 13 and $isbn ne $ean
0 0 0 not $ean or length $isbn == 13 and $isbn ne $ean or length $isbn == 10 and $isbn ne $self->convert_to_isbn10($ean)
103 0 0 0 $@ or not $mech->success
0 0 0 $@ or not $mech->success or not $mech->content
115 0 0 0 $url eq 'https://www.waterstones.com' or $url eq 'https://www.waterstones.com' . "/books/search/term/$ean"
119 0 0 0 $@ or not $mech->success
0 0 0 $@ or not $mech->success or not $mech->content
152 0 0 0 $data->{'binding'} ||= $data->{'format'}
153 0 0 0 $data->{'pubdate'} ||= $data->{'publication_date'}