Branch Coverage

blib/lib/Dancer/Session/YAML.pm
Criterion Covered Total %
branch 16 24 66.6


line true false branch
24 2 1 unless (keys %session_dir_initialized)
25 0 2 unless "Dancer::ModuleLoader"->load("YAML")
30 0 3 unless defined setting("session_dir")
34 2 1 if (not exists $session_dir_initialized{$session_dir})
37 2 0 unless (-d $session_dir)
38 0 2 unless mkdir $session_dir
65 0 6 unless ($id =~ /^[\da-z]+$/i)
72 2 4 unless defined $session_file and -f $session_file
74 0 4 unless open my $fh, "+<", $session_file
76 0 4 unless close $fh
89 1 18 unless $1
100 1 0 if -f yaml_file($self->id)