Branch Coverage

blib/lib/Mojo/UserAgent/Role/Cache/Driver/File.pm
Criterion Covered Total %
branch 12 18 66.6


line true false branch
18 23 20 $exists ? :
24 2 0 if -e $file
33 11 7 unless -d $dir
43 172 70 $len < 100 && $len != 32 && /^[\w+\.-]+$/ ? :
54 0 1 $key[-1] =~ s/^\?b=// ? :
57 1 0 if $key[-1] =~ /^\?q=(.*)/
62 0 1 if defined $body
68 1 0 unless -d $to_dir
69 1 0 if -e $from