Branch Coverage

blib/lib/FusionInventory/Agent/Task/Inventory/Virtualization/Lxc.pm
Criterion Covered Total %
branch 17 28 60.7


line true false branch
37 0 2 unless $handle
42 4 7 unless $line =~ /^(\S+):\s*(\S+)$/
51 0 0 $info{'state'} eq 'STOPPED' ? :
0 0 $info{'state'} eq 'FROZEN' ? :
2 0 $info{'state'} eq 'RUNNING' ? :
58 0 1 unless $handle
66 7 27 if $line =~ /^#.*/
67 14 13 unless $line =~ /^\s*(\S+)\s*=\s*(\S+)\s*$/
71 1 12 if ($key eq 'lxc.network.hwaddr')
75 1 12 if ($key eq 'lxc.cgroup.memory.limit_in_bytes')
79 1 12 if ($key eq 'lxc.cgroup.cpuset.cpus')
82 1 1 if ($cpu =~ /(\d+)-(\d+)/) { }
100 0 0 unless $handle
106 0 0 unless $line =~ /^(\S+)$/