blib/lib/Mojolicious/Plugin/Parallol.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 20 | 26 | 76.9 |
line | true | false | branch |
---|---|---|---|
12 | 0 | 10 | unless $p |
15 | 4 | 6 | if @_ |
20 | 1 | 1 | unless $self->stash('mojo.finished') |
44 | 6 | 6 | unless $$p{'paralloled'} |
48 | 1 | 5 | if --$$p{'paralloling'} == 0 |
51 | 5 | 0 | if 'Mojo::IOLoop'->is_running |
57 | 0 | 0 | unless eval { do { &$cb(@_); 1 } } |
60 | 0 | 0 | if $e |
72 | 4 | 6 | if (ref $callback and ref $callback eq 'CODE') { } |
73 | 2 | 2 | if $opts{'weaken'} // 1 |
89 | 1 | 9 | unless eval { do { &$callback(@_); 1 } } |
92 | 5 | 5 | if (--$$p{'paralloling'} == 0) |
93 | 1 | 4 | unless eval { do { $self->on_parallol->($self); 1 } } |