Branch Coverage

blib/lib/Zabbix/Check/Disk.pm
Criterion Covered Total %
branch 0 64 0.0


line true false branch
76 0 0 unless -f "$blockpath/uevent"
83 0 0 -f "$blockpath/size" && ($_ = read_file("$blockpath/size", {'err_mode', 'quiet'})) ? :
0 0 -f "$blockpath/removable" && ($_ = read_file("$blockpath/removable", {'err_mode', 'quiet'})) ? :
0 0 -f "$blockpath/partition" && ($_ = read_file("$blockpath/partition", {'err_mode', 'quiet'})) ? :
96 0 0 if (-f "$blockpath/dm/name" and my $dmname = read_file("$blockpath/dm/name", {'err_mode', 'quiet'}))
102 0 0 $disk->{'dmpath'} ? :
103 0 0 -f '/proc/mounts' ? :
121 0 0 unless -f "$disk->{'blockpath'}/stat"
123 0 0 unless $statLine
152 0 0 if (my($epoch, $pid) = $tmpPath =~ /^\Q$tmpPrefix\E(\d*)\.(\d*)/u)
154 0 0 if ($now - $epoch < 60)
156 0 0 unless ($stats)
159 0 0 if $tmp
163 0 0 unless ($oldStats)
166 0 0 if $tmp
167 0 0 unless not $tmp or $@
169 0 0 unless $now - $epoch > 120
173 0 0 unless ($stats)
178 0 0 if $tmp
180 0 0 unless $oldStats
186 0 0 unless defined $oldStat
188 0 0 unless $diff
222 0 0 if not $removable and $disk->{'removable'}
231 0 0 unless $devname and $type and $type =~ /^read|write|total$/u
234 0 0 if $analyzed
235 0 0 if $status
243 0 0 unless $devname and $type and $type =~ /^read|write|total$/u
246 0 0 if $analyzed
247 0 0 if $status
255 0 0 unless $devname
258 0 0 if $analyzed
259 0 0 if $status