MailboxOrg/API/Hello.pm

filter: Statementstmt 89.7% 35 / 39 Branchbran 25.0% 1 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 90.9% 10 / 11 Podpod 100% 2 / 2 totaltotal 85.7% 48 / 56 CC 3 SCAR 6.6
CC
3
Cov
84%
innerworld
6.0
world
2.0
BEGIN
1.0
CRAP 1.9
« MailboxOrg/API/Test.pm ↑ Summary MailboxOrg/API/Capabilities.pm »
1 package API::MailboxOrg::API::Hello;
2  
3 # ABSTRACT: MailboxOrg::API::Hello
4  
5 # ---
6 # This class is auto-generated by bin/get_mailbox_api.pl
7 # ---
8  
9 2 ▶use v5.24;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 2 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 2 ▶use Types::Standard qw(Enum Str Int InstanceOf ArrayRef);
Subroutine BEGIN: called CC=1 SCAR=0.0
16 2 ▶use API::MailboxOrg::Types qw(HashRefRestricted Boolean);
Subroutine BEGIN: called CC=1 SCAR=0.0
17 2 ▶use Params::ValidationCompiler qw(validation_for);
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 2 extends 'API::MailboxOrg::APIBase';
20  
21 2 with 'MooX::Singleton';
22  
23 2 ▶use feature 'signatures';
Subroutine BEGIN: called CC=1 SCAR=0.0
24 2 ▶no warnings 'experimental::signatures';
Subroutine BEGIN: called CC=1 SCAR=0.0
25  
26 2 our $VERSION = '1.0.2'; # VERSION
27  
28 2 my %validators = (
29  
30 );
31  
32  
33 0 ▶sub innerworld ($self, %params) {
Subroutine innerworld: not called CC=2 SCAR=17.9
Pod documented
34 0 my $validator = $validators{'innerworld'};
35 0 ▶ %params = $validator->(%params) if $validator;
Branch: 1 branch
BranchTrueFalseTotal
if $validator 0 0 0
36  
37 0 my %opt = (needs_auth => 1);
38  
39 0 return $self->_request( 'hello.innerworld', \%params, \%opt );
40 }
41  
42 1 ▶sub world ($self, %params) {
Subroutine world: called CC=2 SCAR=7.0
Pod documented
43 1 my $validator = $validators{'world'};
44 1 ▶ %params = $validator->(%params) if $validator;
Branch: 1 branch
BranchTrueFalseTotal
if $validator 0 1 1
45  
46 1 my %opt = ();
47  
48 1 return $self->_request( 'hello.world', \%params, \%opt );
49 }
50  
51  
52 2 1;
53  
54 __END__
« MailboxOrg/API/Test.pm ↑ Summary MailboxOrg/API/Capabilities.pm »