blib/lib/Time/DoAfter.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 13 | 24 | 54.1 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
25 | 0 | 0 | 10 | !ref($thing) && defined $thing && !($thing =~ /^[\d\.]+$/) |
line | l | !l | condition |
---|---|---|---|
19 | 10 | 3 | $set->{'label'} or '_label' |
65 | 3 | 2 | $self->{$label}{'wait'} // 0 |
66 | 3 | 1 | $self->{$label}{'do'} || sub { } |
71 | 0 | 0 | $self->{$label}{'wait'}[0] // 0 |
72 | 0 | 0 | $self->{$label}{'wait'}[1] // 0 |
118 | 4 | 0 | $self->{'history'} || [] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
25 | 1 | 0 | 12 | ref $thing eq 'ARRAY' || !ref($thing) && defined $thing && $thing =~ /^[\d\.]+$/ |
65 | 0 | 0 | 5 | $input->{$label}{'wait'} //= $self->{$label}{'wait'} // 0 |
66 | 1 | 4 | 0 | $input->{$label}{'do'} ||= $self->{$label}{'do'} || sub { } |