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.024';
3             # ABSTRACT: The base class for Telegram 'PassportData' type objects
4              
5              
6 5     5   37 use Mojo::Base 'Telegram::Bot::Object::Base';
  5         9  
  5         29  
7 5     5   2941 use Telegram::Bot::Object::EncryptedPassportElement;
  5         16  
  5         45  
8 5     5   2320 use Telegram::Bot::Object::EncryptedCredentials;
  5         13  
  5         43  
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__