MailboxOrg/API/Test.pm

filter: Statementstmt 79.4% 31 / 39 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 81.8% 9 / 11 Podpod 100% 2 / 2 totaltotal 75.0% 42 / 56 CC 3 SCAR 9.3
CC
3
Cov
72%
accountallowed
6.0
domainallowed
6.0
BEGIN
1.0
CRAP 2.5
« MailboxOrg/API/Spamprotect.pm ↑ Summary MailboxOrg/API/Hello.pm »
1 package API::MailboxOrg::API::Test;
2  
3 # ABSTRACT: MailboxOrg::API::Test
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 'accountallowed' => validation_for(
30 params => {
31 account => { type => Str, optional => 0 },
32  
33 },
34 ),
35 'domainallowed' => validation_for(
36 params => {
37 domain => { type => Str, optional => 0 },
38  
39 },
40 ),
41  
42 );
43  
44  
45 0 ▶sub accountallowed ($self, %params) {
Subroutine accountallowed: not called CC=2 SCAR=17.9
Pod documented
46 0 my $validator = $validators{'accountallowed'};
47 0 ▶ %params = $validator->(%params) if $validator;
Branch: 1 branch
BranchTrueFalseTotal
if $validator 0 0 0
48  
49 0 my %opt = ();
50  
51 0 return $self->_request( 'test.accountallowed', \%params, \%opt );
52 }
53  
54 0 ▶sub domainallowed ($self, %params) {
Subroutine domainallowed: not called CC=2 SCAR=17.9
Pod documented
55 0 my $validator = $validators{'domainallowed'};
56 0 ▶ %params = $validator->(%params) if $validator;
Branch: 1 branch
BranchTrueFalseTotal
if $validator 0 0 0
57  
58 0 my %opt = ();
59  
60 0 return $self->_request( 'test.domainallowed', \%params, \%opt );
61 }
62  
63  
64 2 1;
65  
66 __END__
« MailboxOrg/API/Spamprotect.pm ↑ Summary MailboxOrg/API/Hello.pm »