blib/lib/WebService/Async/Onfido/Document.pm

filter: Statementstmt 73.3% 11 / 15 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 50.0% 3 / 6 Podpod 0.0% 0 / 3 totaltotal 51.8% 14 / 27 CC 2 SCAR 10.0
CC
2
Cov
65%
as_string
6.0
onfido
2.0
applicant
2.0
CRAP 2.7
« blib/lib/WebService/Async/Onfido.pm ↑ Summary blib/lib/WebService/Async/Onfido/Base/Video.pm »
1 package WebService::Async::Onfido::Document;
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  
6 4 ▶use parent qw(WebService::Async::Onfido::Base::Document);
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 4 our $VERSION = '0.003'; # VERSION
9  
10 =head1 NAME
11  
12 WebService::Async::Onfido::Document - represents data for Onfido
13  
14 =head1 DESCRIPTION
15  
16 =cut
17  
18 sub as_string {
19 0 ▶ my ($self) = @_;
Subroutine as_string: not called CC=2 SCAR=17.9
Pod undocumented
20 0 ▶ return sprintf '%s %d byte %s, %s %s (ID %s)',
Condition0%0/2
$self->side // "single"
l!l
00
MC/DC0%0/1
$self->side // "single"
$self->side
Truth table0%0/2
A
A= $self->side
Aresult
11
00
21 $self->file_name,
22 $self->file_size, uc($self->file_type),
23 $self->side // 'single',
24 $self->type,
25 $self->id;
26 }
27  
28 0 ▶sub onfido { return shift->{onfido} }
Subroutine onfido: not called CC=1 SCAR=6.9
Pod undocumented
29 0 ▶sub applicant { return shift->{applicant} }
Subroutine applicant: not called CC=1 SCAR=6.9
Pod undocumented
30  
31 4 1;
32  
33 __END__
34  
35 =head1 AUTHOR
36  
37 deriv.com C<< DERIV@cpan.org >>
38  
39 =head1 LICENSE
40  
41 Copyright deriv.com 2019. Licensed under the same terms as Perl itself.
42  
« blib/lib/WebService/Async/Onfido.pm ↑ Summary blib/lib/WebService/Async/Onfido/Base/Video.pm »