examples/hello-http/app.pl

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 17 / 17 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« examples/error-handling/app.pl ↑ Summary examples/lifespan-state/app.pl »
1 1 ▶use v5.40;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use experimental 'signatures';
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use PAGI::Nano;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 # Ports PAGI's 01-hello-http to PAGI::Nano.
6 # The minimal app: one route, a plain-text response.
7 #
8 # pagi-server app.pl
9  
10 1 ▶my $app = app {
Subroutine __ANON__: called CC=1 SCAR=0.0
11 1 ▶ get '/' => sub ($c) { 'Hello, PAGI::Nano!' };
Subroutine __ANON__: called CC=1 SCAR=0.0
12 1 };
13  
14 1 $app;
« examples/error-handling/app.pl ↑ Summary examples/lifespan-state/app.pl »