| blib/lib/Telegram/Bot/Object/Voice.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::Voice; | ||||||
| 2 | $Telegram::Bot::Object::Voice::VERSION = '0.024'; | ||||||
| 3 | # ABSTRACT: The base class for Telegram 'Voice' type objects | ||||||
| 4 | |||||||
| 5 | |||||||
| 6 | 5 | 5 | 35 | use Mojo::Base 'Telegram::Bot::Object::Base'; | |||
| 5 | 10 | ||||||
| 5 | 26 | ||||||
| 7 | |||||||
| 8 | has 'file_id'; | ||||||
| 9 | has 'duration'; | ||||||
| 10 | has 'mime_type'; | ||||||
| 11 | has 'file_size'; | ||||||
| 12 | |||||||
| 13 | sub fields { | ||||||
| 14 | 0 | 0 | 0 | return { scalar => [qw/file_id duration mime_type file_size/] | |||
| 15 | }; | ||||||
| 16 | } | ||||||
| 17 | |||||||
| 18 | 1; | ||||||
| 19 | |||||||
| 20 | __END__ |