File Coverage

blib/lib/FlashVideo/Site.pm
Criterion Covered Total %
statement 3 8 37.5
branch 0 2 0.0
condition n/a
subroutine 1 6 16.6
pod 0 5 0.0
total 4 21 19.0


line stmt bran cond sub pod time code
1             # Part of get-flash-videos. See get_flash_videos for copyright.
2             package FlashVideo::Site;
3              
4 3     3   20 use strict;
  3         7  
  3         524  
5              
6             # Various accessors to avoid plugins needing to know about the exact command
7             # line options. This will improve at some point (i.e. more OO)
8              
9             sub debug {
10 0     0 0   $App::get_flash_videos::opt{debug};
11             }
12              
13             sub action {
14 0 0   0 0   $App::get_flash_videos::opt{play} ? "play" : "download";
15             }
16              
17             sub player {
18 0     0 0   $App::get_flash_videos::opt{player};
19             }
20              
21             sub yes {
22 0     0 0   $App::get_flash_videos::opt{yes};
23             }
24              
25             sub quiet {
26 0     0 0   $App::get_flash_videos::opt{quiet};
27             }
28              
29             1;