Plack/App/Openqq/GetRecentInfo.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
call
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Plack::App::Openqq::GetRecentInfo;
2 use parent qw(Plack::Component);
3 use URI::Escape qw(uri_unescape);
4 use JSON;
5 sub call{
6 my $self = shift;
7 my $client = $self->{client};
8 my $env = shift;
9 return [
10 200,
11 ['Content-Type' => 'text/plain'],
12 [JSON->new->encode($client->{qq_database}{recent})],
13 ];
14 }
15 1;