File Coverage

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   32 use strict;
  8         9  
  8         194  
3 8     8   23 use warnings;
  8         93  
  8         158  
4 8     8   23 use Moo;
  8         10  
  8         34  
5             extends 'App::dategrep::Iterator::Fh';
6              
7             sub BUILDARGS {
8 3     3 0 5164 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;