Condition Coverage

blib/lib/WWW/Scraper/ISBN/OpenLibrary_Driver.pm
Criterion Covered Total %
condition 12 24 50.0


and 3 conditions

line !l l&&!r l&&r condition
129 1 1 1 $$data{'weight'} and $$data{'weight'} =~ /([\d.]+)\s*(?:lbs|pounds)/
1 0 1 $$data{'weight'} and $$data{'weight'} =~ /([\d.]+)\s*(?:ozs|ounces)/
1 0 0 $$data{'weight'} and $$data{'weight'} =~ /([\d.]+)\s*(?:g|grams)/

or 3 conditions

line l !l&&r !l&&!r condition
98 0 0 4 $@ or not $mech->success
0 0 4 $@ or not $mech->success or not $mech->content
111 2 1 0 $isbn eq $$data{'isbn13'} or $isbn eq $$data{'isbn10'}
140 3 0 0 $@ or not $mech->success
3 0 0 $@ or not $mech->success or not $mech->content