File Coverage

blib/lib/Telegram/Bot/Object/PassportData.pm
Criterion Covered Total %
statement 9 11 81.8
branch n/a
condition n/a
subroutine 3 5 60.0
pod 1 2 50.0
total 13 18 72.2


line stmt bran cond sub pod time code
1             package Telegram::Bot::Object::PassportData;
2             $Telegram::Bot::Object::PassportData::VERSION = '0.021';
3             # ABSTRACT: The base class for Telegram 'PassportData' type objects
4              
5              
6 5     5   31 use Mojo::Base 'Telegram::Bot::Object::Base';
  5         10  
  5         27  
7 5     5   2540 use Telegram::Bot::Object::EncryptedPassportElement;
  5         14  
  5         33  
8 5     5   2151 use Telegram::Bot::Object::EncryptedCredentials;
  5         14  
  5         35  
9              
10             has 'data'; # Array of EncryptedPassportElement
11             has 'credentials'; # EncryptedCredentials
12              
13             sub fields {
14 0     0 0   return { 'Telegram::Bot::Object::EncryptedPassportElement' => [qw/data/],
15             'Telegram::Bot::Object::EncryptedCredentials' => [qw/credentials/],
16             };
17             }
18             sub arrays {
19 0     0 1   qw/data/;
20             }
21              
22             1;
23              
24             __END__