| blib/lib/Queue/Dir.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 28 | 49 | 57.1 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 175 | 0 | 0 | 0 | substr($$p[0], $path, 0) == 0 and -f $$p[0] . '/' . $id |
| 0 | 0 | 0 | substr($$p[0], $path, 0) == 0 and -f $$p[0] . '/' . $id and $id =~ /^\d+\.\d+\.$$self{'id'}\.\d+$/ | |
| 516 | 0 | 0 | 19 | $name = $self->_name($qid) and -f $name |
| 0 | 3 | 16 | $name = $self->_name($qid) and -f $name and $self->_lock($qid) | |
| 3 | 0 | 16 | $name = $self->_name($qid) and -f $name and $self->_lock($qid) and $fh->open($name, $mode) |
| line | l | !l | condition |
|---|---|---|---|
| 457 | 25 | 21 | shift @{$$self{'_files'};} || [0, 0] |
| 506 | 1 | 19 | shift() || 'r' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 112 | 0 | 23 | 0 | ref $name || $name |
| 226 | 0 | 17 | 47 | @{$$self{'_files'};} or $$self{'_current'}[0] |
| 236 | 48 | 48 | 77 | $f eq '.' or $f eq '..' |
| 240 | 46 | 0 | 0 | $$self{'promiscuous'} or $$self{'filter'}($$t[1]) |
| 262 | 76 | 0 | 0 | shift() || $$self{'_current'}[0] || $self->next |
| 306 | 10 | 10 | 1 | $f eq '.' or $f eq '..' |
| 507 | 12 | 7 | 1 | shift() || $$self{'_current'}[0] || $self->next |
| 556 | 23 | 4 | 0 | shift() || $$self{'_current'}[0] |
| 599 | 30 | 0 | 0 | shift() || $$self{'_current'}[0] || $self->next |
| 617 | 26 | 7 | 0 | shift() || $$self{'_current'}[0] |