File Coverage

blib/lib/MogileFS/Factory/Device.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 0 1 0.0
total 20 21 95.2


line stmt bran cond sub pod time code
1             package MogileFS::Factory::Device;
2 21     21   131 use strict;
  21         119  
  21         979  
3 21     21   125 use warnings;
  21         65  
  21         725  
4 21     21   121 use base 'MogileFS::Factory';
  21         51  
  21         2291  
5              
6 21     21   12722 use MogileFS::Device;
  21         75  
  21         2125  
7              
8             sub set {
9 130     130 0 1749 my ($self, $args) = @_;
10 130         594 my $hostfactory = MogileFS::Factory::Host->get_factory;
11 130         589 return $self->SUPER::set(MogileFS::Device->new_from_args($args, $hostfactory));
12             }
13              
14             1;