blib/lib/App/dategrep/Iterator/Stdin.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 12 | 13 | 92.3 |
branch | 1 | 2 | 50.0 |
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 17 | 20 | 85.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package App::dategrep::Iterator::Stdin; | ||||||
2 | 8 | 8 | 28 | use strict; | |||
8 | 9 | ||||||
8 | 191 | ||||||
3 | 8 | 8 | 25 | use warnings; | |||
8 | 83 | ||||||
8 | 175 | ||||||
4 | 8 | 8 | 23 | use Moo; | |||
8 | 8 | ||||||
8 | 33 | ||||||
5 | extends 'App::dategrep::Iterator::Fh'; | ||||||
6 | |||||||
7 | sub BUILDARGS { | ||||||
8 | 3 | 3 | 0 | 5244 | my ( $class, @args ) = @_; | ||
9 | 3 | 50 | 13 | @args = ref $args[0] ? @{ $args[0] } : @args; | |||
0 | 0 | ||||||
10 | 3 | 50 | return { @args, fh => \*STDIN }; | ||||
11 | } | ||||||
12 | |||||||
13 | 1; |