blib/lib/Plack/TempBuffer.pm

filter: Statementstmt 100% 15 / 15 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 95.4% 21 / 22 CC 2 SCAR 3.4
CC
2
Cov
100%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« blib/lib/Plack/Test/Suite.pm ↑ Summary blib/lib/Plack/Middleware/Conditional.pm »
1 package Plack::TempBuffer;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 ▶use parent 'Stream::Buffered';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 ▶sub new {
Subroutine new: called CC=2 SCAR=6.9
Pod undocumented
8 3 my $class = shift;
9  
10 3 ▶ if (defined $Plack::TempBuffer::MaxMemoryBufferSize) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $Plack::TempBuffer::MaxMemoryBufferSize) 2 1 3
11 2 warn "Setting \$Plack::TempBuffer::MaxMemoryBufferSize is deprecated. "
12 . "You should set \$Stream::Buffered::MaxMemoryBufferSize instead.";
13 2 $Stream::Buffered::MaxMemoryBufferSize = $Plack::TempBuffer::MaxMemoryBufferSize;
14 }
15  
16 3 return $class->SUPER::new(@_);
17 }
18  
19 1 1;
« blib/lib/Plack/Test/Suite.pm ↑ Summary blib/lib/Plack/Middleware/Conditional.pm »