Branch Coverage

blib/lib/Plack/Middleware/EasyHooks.pm
Criterion Covered Total %
branch 32 40 80.0


line true false branch
14 5 15 if defined $$self{'before'}
20 15 5 if defined $$self{'after'}
26 9 27 if defined $$self{'filter'}
34 5 15 if defined $$self{'tail'}
40 5 15 if defined $$self{'finalize'}
49 0 25 if ($$env{'psgix.cleanup'})
53 15 10 if (ref $res eq 'ARRAY')
57 10 0 if (ref $res eq 'CODE')
69 4 16 if (defined $override and ref $override eq 'ARRAY')
77 10 10 if (ref $body eq 'ARRAY')
80 10 0 defined($tail = $self->tail($env)) ? :
84 10 0 unless $$env{'psgix.cleanup'}
91 10 25 if $done
95 15 10 if (defined $chunk)
105 10 0 unless $$env{'psgix.cleanup'}
122 5 5 if (exists $$res[2])
127 1 4 if (defined $override and ref $override eq 'ARRAY')
130 1 0 if exists $$override[2]
141 5 0 if defined $tail
143 5 0 unless $$env{'psgix.cleanup'}