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 | 9 | 9 | 49 | use strict; | |||
9 | 11 | ||||||
9 | 248 | ||||||
3 | 9 | 9 | 33 | use warnings; | |||
9 | 10 | ||||||
9 | 187 | ||||||
4 | 9 | 9 | 50 | use Moo; | |||
9 | 10 | ||||||
9 | 55 | ||||||
5 | extends 'App::dategrep::Iterator::Fh'; | ||||||
6 | |||||||
7 | sub BUILDARGS { | ||||||
8 | 3 | 3 | 0 | 5164 | my ( $class, @args ) = @_; | ||
9 | 3 | 50 | 16 | @args = ref $args[0] ? @{ $args[0] } : @args; | |||
0 | 0 | ||||||
10 | 3 | 55 | return { @args, fh => \*STDIN }; | ||||
11 | } | ||||||
12 | |||||||
13 | 1; |