File Coverage

blib/lib/Plack/App/Env.pm
Criterion Covered Total %
statement 16 16 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 1 1 100.0
total 22 22 100.0


line stmt bran cond sub pod time code
1             package Plack::App::Env;
2              
3 3     3   107592 use base qw(Plack::Component);
  3         22  
  3         1494  
4 3     3   38211 use strict;
  3         8  
  3         59  
5 3     3   15 use warnings;
  3         5  
  3         83  
6              
7 3     3   2095 use Data::Printer;
  3         125316  
  3         38  
8              
9             our $VERSION = 0.07;
10              
11             sub call {
12 1     1 1 22141 my ($self, $env) = @_;
13              
14 1         3 my $env_output;
15 1         7 p $env, 'output' => \$env_output;
16              
17             return [
18 1         8063 200,
19             ['Content-Type' => 'text/plain'],
20             [$env_output],
21             ];
22             }
23              
24             1;
25              
26             __END__