Branch Coverage

blib/lib/Dancer2/Plugin/ConditionalCaching.pm
Criterion Covered Total %
branch 6 104 5.7


line true false branch
19 0 0 unless blessed $obj
21 0 0 if blessed $cls
22 0 0 if $obj->isa($cls)
29 0 0 unless defined $a
30 0 0 unless defined $b
32 0 0 if ($w) { }
33 0 0 if (ref $b) { }
41 0 0 if ref $b
70 0 16 if ($private and $public)
73 1 15 if ($no_cache)
74 0 1 if ($no_store)
77 0 1 if ($private)
80 0 1 if ($private)
91 0 0 if defined $changed
92 0 0 if defined $expires
94 0 0 if (defined $age and $age < 0)
108 0 0 if ($check)
109 0 0 if ($req_cc{'MaxAge'} and defined $age)
110 0 0 if ($age > $req_cc{'MaxAge'})
114 0 0 if ($req_cc{'MinFresh'} and defined $fresh)
115 0 0 if ($fresh < $req_cc{'MinFresh'})
122 0 0 unless defined $args{'builder'}
124 0 0 if (ref $args{'builder'} eq 'CODE') { }
137 0 0 if (keys %resp_cc)
140 0 0 if (defined $age)
143 0 0 if (defined $expires)
146 0 0 if (defined $changed)
149 0 0 if (defined $etag)
150 0 0 if ($weak) { }
158 0 0 if ($get_or_head and not $dry)
162 0 0 unless ($check)
169 0 0 $if_match_any ? :
178 0 0 $if_none_match_any ? :
186 0 0 if ($if_match) { }
0 0 elsif ($if_unmodified_since and defined $changed) { }
189 0 0 unless ($xa or $xb)
190 0 0 if $throw
191 0 0 if $dry
196 0 0 unless ($if_unmodified_since > $changed)
197 0 0 if $throw
198 0 0 if $dry
202 0 0 if ($if_none_match) { }
0 0 elsif ($get_or_head and $if_modified_since and defined $changed) { }
205 0 0 if ($xa or $xb)
206 0 0 if ($get_or_head) { }
207 0 0 if $throw
208 0 0 if $dry
212 0 0 if $throw
213 0 0 if $dry
219 0 0 if ($if_modified_since > $changed)
220 0 0 if $throw
221 0 0 if $dry