Condition Coverage

blib/lib/MojoX/IOLoop/Throttle.pm
Criterion Covered Total %
condition 15 23 65.2


and 3 conditions

line !l l&&!r l&&r condition
54 8 0 1 $self->period and not $$self{'period_timer_id'}
75 6429 2445 0 ($$self{'count_period'} < $$self{'limit_period'} || !$$self{'limit_period'}) && ($$self{'count_run'} < $$self{'limit_run'} || !$$self{'limit_run'})
132 7 1 1 not $$self{'count_run'} and $$self{'limit'}
8 0 1 not $$self{'count_run'} and $$self{'limit'} and $$self{'count_total'} >= $$self{'limit'}

or 2 conditions

line l !l condition
48 0 9 $$self{'count_period'} ||= 0
49 0 9 $$self{'count_run'} ||= 0
50 0 9 $$self{'count_total'} ||= 0
179 0 0 $count ||= 1

or 3 conditions

line l !l&&r !l&&!r condition
64 8872 2 1729 not $$self{'limit'} or $$self{'count_total'} < $$self{'limit'}