File Coverage

blib/lib/Plack/App/FakeApache/Connection.pm
Criterion Covered Total %
statement 7 9 77.7
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 10 12 83.3


line stmt bran cond sub pod time code
1             package Plack::App::FakeApache::Connection;
2             $Plack::App::FakeApache::Connection::VERSION = '0.08'; # TRIAL
3 1     1   3163 use Moo;
  1         5  
  1         12  
4 1     1   550 use Types::Standard qw/Str/;
  1         3  
  1         13  
5 1     1   1163 use Plack::App::FakeApache::Log;
  0            
  0            
6              
7             has remote_ip => (
8             is => 'rw',
9             isa => Str,
10             );
11              
12             has log => (
13             is => 'rw',
14             default => sub { Plack::App::FakeApache::Log->new() },
15             handles => [qw(log_error log_serror warn)],
16             );
17              
18             no Moose;
19             __PACKAGE__->meta->make_immutable;
20              
21             1;
22              
23             =head1 NAME
24              
25             Plack::App::FakeApache::Request::Connection - mock Apache::Connection for Plack
26              
27             =head1 DESCRIPTION
28              
29             Only the C method is implmented.