Microservice/HelloWorld.pm

filter: Statementstmt 69.2% 9 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 40.0% 2 / 5 Podpod 0.0% 0 / 3 totaltotal 52.3% 11 / 21 CC 1 SCAR 4.7
CC
1
Cov
69%
service_name
2.0
get_routes
2.0
GET_hello
2.0
CRAP 1.6
« MicroserviceReq.pm ↑ Summary
1 package Async::Microservice::HelloWorld;
2 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 with qw(Async::Microservice);
4 0 ▶sub service_name { return 'asmi-helloworld'; }
Subroutine service_name: not called CC=1 SCAR=6.9
Pod undocumented
5  
6 0 ▶sub get_routes {
Subroutine get_routes: not called CC=1 SCAR=6.9
Pod undocumented
7 0 return ( 'hello' => { defaults => { GET => 'GET_hello' } } );
8 }
9  
10 0 ▶sub GET_hello {
Subroutine GET_hello: not called CC=1 SCAR=6.9
Pod undocumented
11 0 my ( $self, $this_req ) = @_;
12 0 return [ 200, [], 'Hello world!' ];
13 }
14  
15 1 __PACKAGE__->meta->make_immutable;
16 1 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 1 1;
18  
19 __END__
« MicroserviceReq.pm ↑ Summary