blib/lib/FusionInventory/Agent/Task/Inventory/AccessLog.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 9 | 14 | 64.2 |
branch | n/a | ||
condition | n/a | ||
subroutine | 3 | 5 | 60.0 |
pod | 0 | 2 | 0.0 |
total | 12 | 21 | 57.1 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package FusionInventory::Agent::Task::Inventory::AccessLog; | ||||||
2 | |||||||
3 | 1 | 1 | 28055146 | use strict; | |||
1 | 9 | ||||||
1 | 42 | ||||||
4 | 1 | 1 | 9 | use warnings; | |||
1 | 1 | ||||||
1 | 57 | ||||||
5 | |||||||
6 | 1 | 1 | 365 | use FusionInventory::Agent::Tools; | |||
1 | 2 | ||||||
1 | 184 | ||||||
7 | |||||||
8 | sub isEnabled { | ||||||
9 | 0 | 0 | 0 | return 1; | |||
10 | } | ||||||
11 | |||||||
12 | sub doInventory { | ||||||
13 | 0 | 0 | 0 | my (%params) = @_; | |||
14 | |||||||
15 | 0 | my $inventory = $params{inventory}; | |||||
16 | |||||||
17 | 0 | my $date = getFormatedLocalTime(time()); | |||||
18 | |||||||
19 | 0 | $inventory->setAccessLog ({ | |||||
20 | LOGDATE => $date | ||||||
21 | }); | ||||||
22 | } | ||||||
23 | |||||||
24 | 1; |