eg/app.feersum

filter: Statementstmt 33.3% 2 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 28.5% 2 / 7 CC 1 SCAR 6.9
CC
1
Cov
33%
__ANON__
2.0
CRAP 2.0
« blib/lib/Plack/Handler/Feersum.pm ↑ Summary blib/lib/Feersum/Connection.pm »
1 #!perl
2 #
3 # Compare and contrast to app.psgi
4 #
5 1 my $counter = 0;
6 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
7 0 my $r = shift;
8 0 my $n = $counter++;
9 # loading the env is optional under Feersum. For a "fair" speed
10 # comparison to app.psgi, uncomment this line:
11 # my $env = $r->env();
12 0 my $body = "Hello customer number 0x" . sprintf('%08x',$n) . "\n";
13 0 $r->send_response(200, [
14 'Content-Type' => 'text/plain',
15 'Connection' => 'close',
16 ], \$body);
17 1 };
« blib/lib/Plack/Handler/Feersum.pm ↑ Summary blib/lib/Feersum/Connection.pm »