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.023';
3             # ABSTRACT: The base class for Telegram 'PassportData' type objects
4              
5              
6 5     5   36 use Mojo::Base 'Telegram::Bot::Object::Base';
  5         11  
  5         40  
7 5     5   3112 use Telegram::Bot::Object::EncryptedPassportElement;
  5         14  
  5         45  
8 5     5   2430 use Telegram::Bot::Object::EncryptedCredentials;
  5         20  
  5         45  
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__