File Coverage

blib/lib/Plack/App/FakeApache/Connection.pm
Criterion Covered Total %
statement 1 3 33.3
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 2 4 50.0


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