MailboxOrg/API/Context.pm

filter: Statementstmt 88.5% 31 / 35 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 90.0% 9 / 10 Podpod 100% 1 / 1 totaltotal 85.4% 41 / 48 CC 2 SCAR 6.5
CC
2
Cov
84%
list
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.9
« MailboxOrg/API/Capabilities.pm ↑ Summary MailboxOrg/API/Utils.pm »
1 package API::MailboxOrg::API::Context;
2  
3 # ABSTRACT: MailboxOrg::API::Context
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 'list' => validation_for(
30 params => {
31 account => { type => Str, optional => 0 },
32  
33 },
34 ),
35  
36 );
37  
38  
39 0 ▶sub list ($self, %params) {
Subroutine list: not called CC=2 SCAR=17.9
Pod documented
40 0 my $validator = $validators{'list'};
41 0 ▶ %params = $validator->(%params) if $validator;
Branch: 1 branch
BranchTrueFalseTotal
if $validator 0 0 0
42  
43 0 my %opt = (needs_auth => 1);
44  
45 0 return $self->_request( 'context.list', \%params, \%opt );
46 }
47  
48  
49 2 1;
50  
51 __END__
« MailboxOrg/API/Capabilities.pm ↑ Summary MailboxOrg/API/Utils.pm »