blib/lib/Pipe/Tube/Chomp.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 14 | 14 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 19 | 20 | 95.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Pipe::Tube::Chomp; | ||||||
2 | 1 | 1 | 7 | use strict; | |||
1 | 2 | ||||||
1 | 41 | ||||||
3 | 1 | 1 | 6 | use warnings; | |||
1 | 2 | ||||||
1 | 23 | ||||||
4 | 1 | 1 | 16 | use 5.006; | |||
1 | 3 | ||||||
5 | |||||||
6 | 1 | 1 | 6 | use base 'Pipe::Tube'; | |||
1 | 1 | ||||||
1 | 168 | ||||||
7 | |||||||
8 | our $VERSION = '0.06'; | ||||||
9 | |||||||
10 | sub run { | ||||||
11 | 70 | 70 | 0 | 128 | my ($self, @input) = @_; | ||
12 | 70 | 111 | chomp @input; | ||||
13 | 70 | 153 | return @input; | ||||
14 | } | ||||||
15 | |||||||
16 | 1; | ||||||
17 |