tst.pl untested

filter: Statementstmt 0.0% 0 / 30 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod n/a totaltotal 0.0% 0 / 37 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/bin/perl
2  
3 use strict;
4 use warnings;
5 use utf8;
6  
7 use lib 'lib';
8  
9 use Data::Printer;
10  
11 # then in app.psgi
12 use Plack::Builder;
13  
14 use Plack::App::HipChat::WebHook;
15  
16 my $app = Plack::App::HipChat::WebHook->new({
17 hipchat_user_agent => 'HipChat.com',
18 webhooks => {
19 '/webhook_notification' => sub {
20 my $rh = shift;
21 p $rh;
22 return [ 200,
23 [ 'Content-Type' => 'text/plain' ],
24 [ 'Completed' ]
25 ];
26 },
27 },
28 })->to_app;