Condition Coverage

blib/lib/WWW/Scraper/ISBN/AmazonUS_Driver.pm
Criterion Covered Total %
condition 24 42 57.1


and 3 conditions

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

or 3 conditions

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