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 | 100 | use strict; | |||
21 | 40 | ||||||
21 | 747 | ||||||
3 | 21 | 21 | 91 | use warnings; | |||
21 | 33 | ||||||
21 | 549 | ||||||
4 | 21 | 21 | 94 | use base 'MogileFS::Factory'; | |||
21 | 28 | ||||||
21 | 1905 | ||||||
5 | |||||||
6 | 21 | 21 | 7602 | use MogileFS::Device; | |||
21 | 45 | ||||||
21 | 2531 | ||||||
7 | |||||||
8 | sub set { | ||||||
9 | 130 | 130 | 0 | 547 | my ($self, $args) = @_; | ||
10 | 130 | 289 | my $hostfactory = MogileFS::Factory::Host->get_factory; | ||||
11 | 130 | 289 | return $self->SUPER::set(MogileFS::Device->new_from_args($args, $hostfactory)); | ||||
12 | } | ||||||
13 | |||||||
14 | 1; |