File Coverage

blib/lib/Plack/TempBuffer.pm
Criterion Covered Total %
statement 14 14 100.0
branch 2 2 100.0
condition n/a
subroutine 4 4 100.0
pod 0 1 0.0
total 20 21 95.2


line stmt bran cond sub pod time code
1             package Plack::TempBuffer;
2 1     1   54944 use strict;
  1         9  
  1         25  
3 1     1   4 use warnings;
  1         1  
  1         22  
4              
5 1     1   373 use parent 'Stream::Buffered';
  1         241  
  1         5  
6              
7             sub new {
8 3     3 0 4460 my $class = shift;
9              
10 3 100       10 if (defined $Plack::TempBuffer::MaxMemoryBufferSize) {
11 2         22 warn "Setting \$Plack::TempBuffer::MaxMemoryBufferSize is deprecated. "
12             . "You should set \$Stream::Buffered::MaxMemoryBufferSize instead.";
13 2         11 $Stream::Buffered::MaxMemoryBufferSize = $Plack::TempBuffer::MaxMemoryBufferSize;
14             }
15              
16 3         13 return $class->SUPER::new(@_);
17             }
18              
19             1;