Branch Coverage

blib/lib/CHI/Util.pm
Criterion Covered Total %
branch 18 26 69.2


line true false branch
48 29 0 if (/Can\'t locate .* in \@INC/ and not /Compilation failed/) { }
71 0 46 unless opendir DIRH, $dir
72 232 46 if $_ ne "."
82 0 5414 unless (sysopen $read_fh, $file, $Fetch_Flags)
88 5414 0 if (defined $read_cnt) { }
89 0 5414 if $read_cnt == 0
91 5414 0 if $size_left <= 0
102 0 2228 unless defined $file_create_mode
108 2 2226 unless (sysopen $write_fh, $file, $Store_Flags, $file_create_mode)
116 0 2226 unless (defined $write_cnt)
134 9 2528 unless ($suffix and defined $uuid)
169 1 11 if ($size =~ /^\d+b?$/) { }
10 1 elsif (my($quantity, $unit) = $size =~ /^(\d+)\s*([km])b?$/i) { }