File Coverage

blib/lib/IBM/StorageSystem/Statistic/Node/DiskRead.pm
Criterion Covered Total %
statement 18 36 50.0
branch 0 6 0.0
condition n/a
subroutine 6 11 54.5
pod 0 1 0.0
total 24 54 44.4


line stmt bran cond sub pod time code
1             package IBM::StorageSystem::Statistic::Node::DiskRead;
2              
3 1     1   5 use strict;
  1         1  
  1         26  
4 1     1   4 use warnings;
  1         2  
  1         22  
5              
6 1     1   4 use vars qw($AUTOLOAD);
  1         2  
  1         46  
7              
8 1     1   5 use Carp qw(croak);
  1         1  
  1         148  
9              
10             sub AUTOLOAD {
11 0 0   0     my $self = shift or return undef;
12 0           ( my $method = $AUTOLOAD ) =~ s/.*:://;
13              
14             my $accessor = sub {
15 0     0     my ( $t_self, $val ) = @_;
16 0 0         $t_self->{$method} = $val if defined $val;
17 0           return $t_self->{$method};
18 0           };
19              
20             {
21 1     1   4 no strict qw{refs};
  1         2  
  1         117  
  0            
22 0           *$AUTOLOAD = $accessor;
23             }
24              
25 0           unshift @_, $self;
26 0           goto &$AUTOLOAD;
27             }
28              
29 0     0     sub DESTROY {}
30              
31             sub new {
32 0     0 0   my( $class, @vals ) = @_;
33 0           my $self = bless {}, $class;
34 0           return $self
35             }
36              
37             sub _values {
38             {
39 1     1   5 no strict 'refs';
  1     0   1  
  1         94  
  0            
40 0 0         return grep { defined &{$_} and /(dm_|(start|end)_time)/ } keys %IBM::StorageSystem::Statistic::Node::DiskRead::
  0            
  0            
41             }
42             }
43              
44             1;
45              
46             __END__