blib/lib/Pipe/Tube/Say.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 15 | 15 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 20 | 21 | 95.2 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Pipe::Tube::Say; | ||||||
2 | 1 | 1 | 6 | use strict; | |||
1 | 2 | ||||||
1 | 30 | ||||||
3 | 1 | 1 | 15 | use warnings; | |||
1 | 2 | ||||||
1 | 33 | ||||||
4 | 1 | 1 | 16 | use 5.006; | |||
1 | 4 | ||||||
5 | |||||||
6 | 1 | 1 | 6 | use base 'Pipe::Tube::Print'; | |||
1 | 2 | ||||||
1 | 226 | ||||||
7 | |||||||
8 | our $VERSION = '0.06'; | ||||||
9 | |||||||
10 | |||||||
11 | sub run { | ||||||
12 | 14 | 14 | 0 | 25 | my ($self, @input) = @_; | ||
13 | 14 | 22 | my @unchomped = map { "$_\n" } @input; | ||||
10 | 34 | ||||||
14 | 14 | 38 | $self->SUPER::run(@unchomped); | ||||
15 | } | ||||||
16 | |||||||
17 | |||||||
18 | 1; | ||||||
19 | |||||||
20 | |||||||
21 |