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 | 115 | use strict; | |||
21 | 34 | ||||||
21 | 515 | ||||||
3 | 21 | 21 | 89 | use warnings; | |||
21 | 30 | ||||||
21 | 457 | ||||||
4 | 21 | 21 | 91 | use base 'MogileFS::Factory'; | |||
21 | 35 | ||||||
21 | 1612 | ||||||
5 | |||||||
6 | 21 | 21 | 6860 | use MogileFS::Host; | |||
21 | 51 | ||||||
21 | 1359 | ||||||
7 | |||||||
8 | sub set { | ||||||
9 | 68 | 68 | 0 | 1223 | my ($self, $args) = @_; | ||
10 | 68 | 140 | my $devfactory = MogileFS::Factory::Device->get_factory; | ||||
11 | 68 | 168 | return $self->SUPER::set(MogileFS::Host->new_from_args($args, $devfactory)); | ||||
12 | } | ||||||
13 | |||||||
14 | 1; |