Branch Coverage

blib/lib/API/Octopart.pm
Criterion Covered Total %
branch 0 40 0.0


line true false branch
99 0 0 unless $args{'token'}
277 0 0 if ($self->{'cache'} and -e $hashfile) { }
279 0 0 unless -d $self->{'cache'}
282 0 0 if ($self->{'ua_debug'})
287 0 0 if (open my $in, $hashfile) { }
304 0 0 if ($self->{'ua_debug'})
344 0 0 unless ($response->is_success)
350 0 0 if ($self->{'cache'})
352 0 0 unless open my $out, ">", $hashfile
360 0 0 if ($j->{'errors'})
370 0 0 if ($self->{'ua_debug'})
403 0 0 if ($self->{'include_specs'})
459 0 0 unless $_valid_filter_opts{$o}
470 0 0 if (defined $r->{'specs'})
481 0 0 $_->{'units'} ? :
0 0 defined $_->{'attribute'}{'shortname'} ? :
496 0 0 if defined $opts{'currency'} and $p->{'currency'} ne $opts{'currency'}
504 0 0 if (not defined $ss{$s->{'company'}{'name'}}{'moq'} or $ss{$s->{'company'}{'name'}}{'moq'} > $moq)
524 0 0 if defined $opts{'mfg'} and not $r->{'mfg'} =~ /$opts{'mfg'}/i
528 0 0 if (not defined $r->{'sellers'}{$s}{'price_tier'} or defined $opts{'min_qty'} and $r->{'sellers'}{$s}{'stock'} < $opts{'min_qty'} or defined $opts{'max_price'} and $r->{'sellers'}{$s}{'moq_price'} > $opts{'max_price'} or (defined $opts{'max_moq'} and $r->{'sellers'}{$s}{'moq'} > $opts{'max_moq'} or defined $opts{'seller'} and not $s =~ /$opts{'seller'}/i))