Condition Coverage

blib/lib/API/Octopart.pm
Criterion Covered Total %
condition 0 43 0.0


and 3 conditions

line !l l&&!r l&&r condition
307 0 0 0 -e $hashfile and $age_days < $self->{'cache_age'}
333 0 0 0 $self->{'query_limit'} and $self->{'api_queries'} >= $self->{'query_limit'}
561 0 0 0 defined $opts{'currency'} and $p->{'currency'} ne $opts{'currency'}
589 0 0 0 defined $opts{'mfg'} and not $r->{'mfg'} =~ /$opts{'mfg'}/i
593 0 0 0 defined $opts{'min_qty'} and $r->{'sellers'}{$s}{'stock'} < $opts{'min_qty'}
0 0 0 defined $opts{'max_price'} and $r->{'sellers'}{$s}{'moq_price'} > $opts{'max_price'}
0 0 0 defined $opts{'max_moq'} and $r->{'sellers'}{$s}{'moq'} > $opts{'max_moq'}
0 0 0 defined $opts{'seller'} and not $s =~ /$opts{'seller'}/i

or 2 conditions

line l !l condition
120 0 0 $args{'cache_age'} //= 30
331 0 0 $self->{'api_queries'} //= 0

or 3 conditions

line l !l&&r !l&&!r condition
569 0 0 0 not defined $ss{$s->{'company'}{'name'}}{'moq'} or $ss{$s->{'company'}{'name'}}{'moq'} > $moq
593 0 0 0 not defined $r->{'sellers'}{$s}{'price_tier'} or defined $opts{'min_qty'} and $r->{'sellers'}{$s}{'stock'} < $opts{'min_qty'}
0 0 0 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'}
0 0 0 defined $opts{'max_moq'} and $r->{'sellers'}{$s}{'moq'} > $opts{'max_moq'} or defined $opts{'seller'} and not $s =~ /$opts{'seller'}/i
0 0 0 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)