Branch Coverage

blib/lib/FusionInventory/Agent/Task/Inventory/Linux/Videos.pm
Criterion Covered Total %
branch 30 48 62.5


line true false branch
11 0 0 if $params{'no_category'}{'video'}
24 0 0 if (canRun('ddcprobe')) { }
44 0 0 unless $process->{'CMD'} =~ m[ ^ (?: /usr/bin | /usr/X11R6/bin | /etc/X11 ) /X ]x
59 0 0 if ($xorgPid) { }
61 0 0 if (-r $link) { }
80 0 0 unless $xorgData or $ddcprobeData
91 0 0 if ($video->{'MEMORY'} and $video->{'MEMORY'} =~ s/kb$//i)
94 0 0 if ($video->{'RESOLUTION'})
106 0 7 unless $handle
112 230 4 if $line =~ /^(\S+):\s+(.*)/
121 0 12 unless $handle
125 848 8176 if ($line =~ /Modeline\s"(\S+?)"/) { }
4 8172 elsif ($line =~ /Integrated Graphics Chipset:\s+(.*)/) { }
3 8169 elsif ($line =~ /Virtual screen size determined to be (\d+)\s*x\s*(\d+)/) { }
3 8166 elsif ($line =~ /NVIDIA GPU\s*(.*?)\s*at/) { }
6 8160 elsif ($line =~ /VESA VBE OEM:\s*(.*)/) { }
6 8154 elsif ($line =~ /VESA VBE OEM Product:\s*(.*)/) { }
6 8148 elsif ($line =~ /VESA VBE Total Mem: (\d+)\s*(\w+)/i) { }
1 8147 elsif ($line =~ /RADEON\(0\): Chipset: "(.*?)"/i) { }
4 8143 elsif ($line =~ /Virtual size is (\S+)/i) { }
12 8131 elsif ($line =~ / PCI: \* \( (?:\d+:)? (\d+) : (\d+) : (\d+) \) \s (\w{4}:\w{4}:\w{4}:\w{4})? /x) { }
1 8130 elsif ($line =~ /NOUVEAU\(0\): Chipset: "(.*)"/) { }
126 6 842 unless $data->{'resolution'}
152 8 4 if $4