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 | 31357053 | use strict; | |||
1 | 3 | ||||||
1 | 99 | ||||||
4 | 1 | 1 | 11 | use warnings; | |||
1 | 4 | ||||||
1 | 200 | ||||||
5 | |||||||
6 | 1 | 1 | 706 | use FusionInventory::Agent::Tools; | |||
1 | 2 | ||||||
1 | 297 | ||||||
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; |