example/bin/app.psgi | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 21 | 21 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 7 | 7 | 100.0 |
pod | n/a | ||
total | 28 | 28 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | #!/usr/bin/env perl | ||||||
2 | |||||||
3 | 1 | 1 | 621 | use strict; | |||
1 | 2 | ||||||
1 | 25 | ||||||
4 | 1 | 1 | 5 | use warnings; | |||
1 | 1 | ||||||
1 | 19 | ||||||
5 | 1 | 1 | 407 | use FindBin; | |||
1 | 872 | ||||||
1 | 45 | ||||||
6 | 1 | 1 | 377 | use lib "$FindBin::Bin/../lib"; | |||
1 | 541 | ||||||
1 | 7 | ||||||
7 | |||||||
8 | 1 | 1 | 456 | use MyApp; | |||
1 | 3 | ||||||
1 | 6 | ||||||
9 | 1 | 1 | 38 | use Plack::Builder; | |||
1 | 2 | ||||||
1 | 110 | ||||||
10 | 1 | 1 | 7 | use Plack::App::WebSocket; | |||
1 | 2 | ||||||
1 | 63 | ||||||
11 | |||||||
12 | builder { | ||||||
13 | mount( MyApp->websocket_mount ); | ||||||
14 | mount '/' => MyApp->to_app; | ||||||
15 | } | ||||||
16 |