Branch Coverage

lib/Petal/Cache/Disk.pm
Criterion Covered Total %
branch 6 18 33.3


line true false branch
20 0 0 if $Petal::INPUT
46 0 4 if $class->is_ok($file, $lang)
74 0 4 unless rename $temp_file_path, $final_file_path
91 4 0 unless -e $tmp_file
111 12 0 if defined $PREFIX
157 0 0 unless -e $cached_filepath
161 0 0 unless open FP, '<:utf8', "$tmp/$key"
179 0 8 unless -e $TMP_DIR
180 0 8 unless -d $TMP_DIR