Condition Coverage

blib/lib/WWW/Scraper/ISBN/AmazonUS_Driver.pm
Criterion Covered Total %
condition 25 42 59.5


and 3 conditions

line !l l&&!r l&&r condition
97 2 2 0 length $isbn == 13 and $isbn ne $ean
2 2 0 length $isbn == 10 and $isbn ne $self->convert_to_isbn10($ean)
146 10 0 1 $data->{'title'} and $data->{'author'}
179 2 0 1 $data->{'weight'} and $weight eq 'ounces'
180 2 1 0 $data->{'weight'} and $weight eq 'pounds'

or 3 conditions

line l !l&&r !l&&!r condition
97 0 0 4 not $ean or length $isbn == 13 and $isbn ne $ean
0 0 4 not $ean or length $isbn == 13 and $isbn ne $ean or length $isbn == 10 and $isbn ne $self->convert_to_isbn10($ean)
107 0 1 3 $@ or not $mech->success
1 1 2 $@ or not $mech->success or not $mech->content
116 0 0 1 $@ or not $mech->success
0 0 1 $@ or not $mech->success or not $mech->content
142 0 1 10 $data->{'title'} ||= $title
143 0 1 10 $data->{'author'} ||= $author
166 0 1 10 $data->{'description'} ||= $desc