File Coverage

blib/lib/Telegram/Bot/Object/PollOption.pm
Criterion Covered Total %
statement 3 4 75.0
branch n/a
condition n/a
subroutine 1 2 50.0
pod 0 1 0.0
total 4 7 57.1


line stmt bran cond sub pod time code
1             package Telegram::Bot::Object::PollOption;
2             $Telegram::Bot::Object::PollOption::VERSION = '0.021';
3             # ABSTRACT: The base class for Telegram 'PollOption' type objects
4              
5              
6 5     5   32 use Mojo::Base 'Telegram::Bot::Object::Base';
  5         8  
  5         29  
7              
8             has 'text';
9             has 'voter_count';
10              
11             sub fields {
12 0     0 0   return { scalar => [qw/text voter_count/],
13             };
14             }
15              
16             1;
17              
18             __END__