blib/lib/Eixo/QueueInmediate.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 9 | 9 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 3 | 3 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 12 | 13 | 92.3 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Eixo::QueueInmediate; | ||||||
2 | |||||||
3 | 1 | 1 | 332 | use strict; | |||
1 | 1 | ||||||
1 | 24 | ||||||
4 | 1 | 1 | 344 | use parent qw(Eixo::Queue); | |||
1 | 205 | ||||||
1 | 4 | ||||||
5 | |||||||
6 | sub addAndWait{ | ||||||
7 | 1000 | 1000 | 0 | 11578 | my ($self, $job) = @_; | ||
8 | |||||||
9 | 1000 | 1634 | $self->add($job); | ||||
10 | |||||||
11 | 1000 | 1613 | $self->wait(); | ||||
12 | |||||||
13 | } | ||||||
14 | |||||||
15 | 1; |