| 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 | 33778783 | use strict; | |||
| 7 | 13 | ||||||
| 7 | 169 | ||||||
| 4 | 7 | 7 | 28 | use warnings; | |||
| 7 | 10 | ||||||
| 7 | 181 | ||||||
| 5 | 7 | 7 | 23 | use base 'FusionInventory::Agent::XML::Query'; | |||
| 7 | 45 | ||||||
| 7 | 1892 | ||||||
| 6 | |||||||
| 7 | sub new { | ||||||
| 8 | 3 | 3 | 1 | 455 | my ($class, %params) = @_; | ||
| 9 | |||||||
| 10 | 3 | 100 | 18 | die "no content parameter" unless $params{content}; | |||
| 11 | |||||||
| 12 | 2 | 17 | return $class->SUPER::new( | ||||
| 13 | query => 'INVENTORY', | ||||||
| 14 | %params | ||||||
| 15 | ); | ||||||
| 16 | } | ||||||
| 17 | |||||||
| 18 | 1; | ||||||
| 19 | __END__ |