blib/lib/FusionInventory/Agent/Tools/Hardware/Apc.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 6 | 11 | 54.5 |
branch | 0 | 2 | 0.0 |
condition | n/a | ||
subroutine | 2 | 3 | 66.6 |
pod | 0 | 1 | 0.0 |
total | 8 | 17 | 47.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package FusionInventory::Agent::Tools::Hardware::Apc; | ||||||
2 | |||||||
3 | 1 | 1 | 24731450 | use strict; | |||
1 | 2 | ||||||
1 | 46 | ||||||
4 | 1 | 1 | 10 | use warnings; | |||
1 | 2 | ||||||
1 | 141 | ||||||
5 | |||||||
6 | sub run { | ||||||
7 | 0 | 0 | 0 | my (%params) = @_; | |||
8 | |||||||
9 | 0 | my $snmp = $params{snmp}; | |||||
10 | 0 | my $device = $params{device}; | |||||
11 | |||||||
12 | 0 | my $sPDUIdentModelNumber = $snmp->get(".1.3.6.1.4.1.318.1.1.4.1.4.0"); | |||||
13 | |||||||
14 | 0 | 0 | $device->{INFO}->{MODEL} = $sPDUIdentModelNumber if $sPDUIdentModelNumber; | ||||
15 | } | ||||||
16 | |||||||
17 | 1; | ||||||
18 | __END__ |