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