Miril/App/PSGI.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 27 CC 1 SCAR 6.9
CC
1
Cov
0%
app
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Miril::App::PSGI;
2
3 use strict;
4 use warnings;
5 use autodie;
6
7 use Miril::CGI::Application;
8 use CGI::Application::Emulate::PSGI;
9
10 sub app {
11 my ($self, $miril_dir, $site) = @_;
12 return CGI::Application::Emulate::PSGI->handler( sub {
13 my $miril = Miril::CGI::Application->new(
14 PARAMS => {
15 miril_dir => $miril_dir,
16 site => $site,
17 },
18 );
19 $miril->run;
20 } );
21 }
22
23 1;