Branch Coverage

blib/lib/MasonX/Plugin/Compress.pm
Criterion Covered Total %
branch 13 22 59.0


line true false branch
61 0 5 unless length $$o
63 0 5 if $r->content_encoding
72 1 4 unless $r->content_type =~ /^text/
75 0 4 unless my(@accept) = split(/[\s,]/, $r->header_in('Accept-Encoding'), 0)
77 1 3 unless my $encoding = &List::Util::first(sub { $AcceptMap{$_}; } , @accept)
129 0 1 unless $d
131 0 1 unless $d
137 0 1 unless $status == Compress::Zlib::Z_OK()
139 0 1 unless $status == Compress::Zlib::Z_OK()
143 0 1 unless $status == Compress::Zlib::Z_OK()
145 0 1 unless $status == Compress::Zlib::Z_OK()