| blib/lib/Text/Pipe/List/Shift.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 12 | 12 | 100.0 |
| branch | 1 | 2 | 50.0 |
| condition | n/a | ||
| subroutine | 4 | 4 | 100.0 |
| pod | 1 | 1 | 100.0 |
| total | 18 | 19 | 94.7 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package Text::Pipe::List::Shift; | ||||||
| 2 | |||||||
| 3 | 1 | 1 | 8 | use warnings; | |||
| 1 | 2 | ||||||
| 1 | 35 | ||||||
| 4 | 1 | 1 | 5 | use strict; | |||
| 1 | 2 | ||||||
| 1 | 53 | ||||||
| 5 | |||||||
| 6 | |||||||
| 7 | our $VERSION = '0.10'; | ||||||
| 8 | |||||||
| 9 | |||||||
| 10 | 1 | 1 | 6 | use base 'Text::Pipe::Base'; | |||
| 1 | 3 | ||||||
| 1 | 149 | ||||||
| 11 | |||||||
| 12 | |||||||
| 13 | sub filter { | ||||||
| 14 | 1 | 1 | 1 | 3 | my ($self, $input) = @_; | ||
| 15 | 1 | 50 | 4 | return $input unless ref $input eq 'ARRAY'; | |||
| 16 | |||||||
| 17 | 1 | 4 | shift @$input; | ||||
| 18 | } | ||||||
| 19 | |||||||
| 20 | |||||||
| 21 | 1; | ||||||
| 22 | |||||||
| 23 | |||||||
| 24 | __END__ |