File Coverage

blib/lib/IO/Info.pm
Criterion Covered Total %
statement 11 20 55.0
branch n/a
condition n/a
subroutine 4 5 80.0
pod 0 1 0.0
total 15 26 57.6


line stmt bran cond sub pod time code
1             package IO::Info;
2              
3 1     1   22 use 5.026001;
  1         4  
4 1     1   7 use strict;
  1         3  
  1         23  
5 1     1   5 use warnings;
  1         2  
  1         26  
6 1     1   615 use Data::Dumper;
  1         6601  
  1         145  
7              
8              
9             sub new {
10 0     0 0   my ($class, @items) = @_;
11 0           my $self = {};
12              
13 0           for my $rec (@items){
14 0           my ($key, $value);
15 0           while (($key, $value) = each %{$rec}){
  0            
16 0           $self->{$key} = $value
17             }
18             }
19              
20              
21 0           bless $self, $class;
22              
23 0           return $self;
24             }
25              
26              
27             1;
28             __END__