File Coverage

blib/lib/MogileFS/Factory/Host.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::Host;
2 21     21   127 use strict;
  21         53  
  21         917  
3 21     21   125 use warnings;
  21         52  
  21         686  
4 21     21   129 use base 'MogileFS::Factory';
  21         113  
  21         2298  
5              
6 21     21   11284 use MogileFS::Host;
  21         75  
  21         2408  
7              
8             sub set {
9 68     68 0 1477 my ($self, $args) = @_;
10 68         207 my $devfactory = MogileFS::Factory::Device->get_factory;
11 68         268 return $self->SUPER::set(MogileFS::Host->new_from_args($args, $devfactory));
12             }
13              
14             1;