blib/lib/FusionInventory/Agent/Storage.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 13 | 18 | 72.2 |
line | true | false | branch |
---|---|---|---|
16 | 1 | 11 | unless $params{'directory'} |
17 | 7 | 4 | unless (-d $params{'directory'}) |
24 | 0 | 7 | if $FusionInventory::Agent::Storage::EVAL_ERROR |
27 | 0 | 11 | unless (-w $params{'directory'}) |
51 | 4 | 26 | unless $params{'name'} |
69 | 0 | 11 | unless store($params{'data'}, $file) |
77 | 7 | 5 | unless -f $file |
83 | 0 | 5 | if ($FusionInventory::Agent::Storage::EVAL_ERROR) |
96 | 0 | 1 | unless unlink $file |