blib/lib/FusionInventory/Agent/XML/Query/Inventory.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 12 | 12 | 100.0 |
branch | 2 | 2 | 100.0 |
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | 1 | 1 | 100.0 |
total | 19 | 19 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package FusionInventory::Agent::XML::Query::Inventory; | ||||||
2 | |||||||
3 | 7 | 7 | 41217639 | use strict; | |||
7 | 54 | ||||||
7 | 277 | ||||||
4 | 7 | 7 | 54 | use warnings; | |||
7 | 15 | ||||||
7 | 341 | ||||||
5 | 7 | 7 | 58 | use base 'FusionInventory::Agent::XML::Query'; | |||
7 | 140 | ||||||
7 | 3771 | ||||||
6 | |||||||
7 | sub new { | ||||||
8 | 3 | 3 | 1 | 212 | my ($class, %params) = @_; | ||
9 | |||||||
10 | 3 | 100 | 21 | die "no content parameter" unless $params{content}; | |||
11 | |||||||
12 | 2 | 16 | return $class->SUPER::new( | ||||
13 | query => 'INVENTORY', | ||||||
14 | %params | ||||||
15 | ); | ||||||
16 | } | ||||||
17 | |||||||
18 | 1; | ||||||
19 | __END__ |