Verifier.pm

filter: Statementstmt 66.6% 10 / 15 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 48.2% 14 / 29 CC 4 SCAR 24.7
CC
4
Cov
45%
EmailVerifier
20.0
BEGIN
1.0
BEGIN
1.0
CRAP 11.9
« Domain.pm ↑ Summary Bulk.pm »
1 package Tomba::Verifier;
2  
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use parent 'Tomba::Client';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 =head1 NAME
8  
9 Tomba::Verifier - Email verification for the Tomba.io API
10  
11 =head1 SYNOPSIS
12  
13 use Tomba::Verifier;
14  
15 my $tomba = Tomba::Verifier->new("ta_xxxxx", "ts_xxxxx");
16 my $verified = $tomba->EmailVerifier("b.mohamed@tomba.io");
17  
18 =head1 DESCRIPTION
19  
20 Verify the deliverability of an email address.
21  
22 =cut
23  
24 #-------------------------------------------------------------------------------
25 # Email Verifier
26 #-------------------------------------------------------------------------------
27  
28 =head2 EmailVerifier
29  
30 my $data = $tomba->EmailVerifier("b.mohamed@tomba.io");
31  
32 Verify the deliverability of an email address.
33  
34 See L<https://docs.tomba.io/api/verifier#get-email-verifier>
35  
36 =cut
37  
38 0 ▶sub EmailVerifier {
Subroutine EmailVerifier: not called CC=4 SCAR=30.0
Pod documented
39 0 my ($self, $email, $opts) = @_;
40 0 my $params = {
41 email => $email,
42 };
43 0 ▶ if ($opts && ref($opts) eq 'HASH') {
Branch: 1 branch
BranchTrueFalseTotal
if ($opts and ref $opts eq "HASH") 0 0 0
Condition0%0/3
$opts and ref $opts eq "HASH"
!ll&&!rl&&r
000
MC/DC0%0/2
$opts and ref $opts eq "HASH"
$opts ref $opts eq "HASH"
Truth table0%0/3
A and B
A= $optsB= ref $opts eq "HASH"
ABresult
0X0
100
111
44 0 ▶ $params->{webhook_url} = $opts->{webhook_url} if exists $opts->{webhook_url};
Branch: 1 branch
BranchTrueFalseTotal
if exists $opts->{"webhook_url"} 0 0 0
45 }
46 0 return $self->call(Tomba::Client::VERIFIER_PATH, $params);
47 }
48  
49 4 1;
50 __END__
« Domain.pm ↑ Summary Bulk.pm »