| blib/lib/Text/Pipe/Code.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 11 | 11 | 100.0 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 4 | 4 | 100.0 |
| pod | 1 | 1 | 100.0 |
| total | 16 | 16 | 100.0 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package Text::Pipe::Code; | ||||||
| 2 | |||||||
| 3 | 1 | 1 | 7 | use warnings; | |||
| 1 | 1 | ||||||
| 1 | 51 | ||||||
| 4 | 1 | 1 | 6 | use strict; | |||
| 1 | 2 | ||||||
| 1 | 70 | ||||||
| 5 | |||||||
| 6 | |||||||
| 7 | our $VERSION = '0.10'; | ||||||
| 8 | |||||||
| 9 | |||||||
| 10 | 1 | 1 | 7 | use base 'Text::Pipe::Base'; | |||
| 1 | 2 | ||||||
| 1 | 208 | ||||||
| 11 | |||||||
| 12 | |||||||
| 13 | __PACKAGE__->mk_scalar_accessors(qw(code)); | ||||||
| 14 | |||||||
| 15 | |||||||
| 16 | sub filter { | ||||||
| 17 | 2 | 2 | 1 | 24 | my ($self, $input) = @_; | ||
| 18 | 2 | 25 | $self->code->($input); | ||||
| 19 | } | ||||||
| 20 | |||||||
| 21 | |||||||
| 22 | 1; | ||||||
| 23 | |||||||
| 24 | |||||||
| 25 | __END__ |