Branch Coverage

blib/lib/Cache/IOString.pm
Criterion Covered Total %
branch 21 36 58.3


line true false branch
25 0 9 unless ref $self
30 4 5 if ($mode =~ /^\+?>>?$/) { }
5 0 elsif ($mode =~ /^\+?<$/) { }
32 0 4 if $mode =~ /^\+/
36 3 2 if $mode =~ /^\+/
45 7 2 if ($write)
46 2 5 if ($mode =~ /^\+?>>$/) { }
2 3 elsif ($mode =~ /^\+?>$/) { }
63 4 4 if *$self->{'_cache_close_callback'}
70 0 9 if *$self->{'_cache_close_callback'}
75 0 0 unless *$self->{'_cache_write'}
81 0 0 unless *$self->{'_cache_read'}
87 0 0 unless *$self->{'_cache_read'}
95 0 7 unless *$self->{'_cache_write'}
101 0 12 unless *$self->{'_cache_read'}
107 0 2 unless *$self->{'_cache_write'}
113 0 0 unless *$self->{'_cache_read'}
119 1 8 unless *$self->{'_cache_write'}