File Coverage

blib/lib/Data/iRealPro/Output/Base.pm
Criterion Covered Total %
statement 19 19 100.0
branch 1 2 50.0
condition n/a
subroutine 6 6 100.0
pod 0 2 0.0
total 26 29 89.6


line stmt bran cond sub pod time code
1             #! perl
2              
3             # Data::iRealPro::Output::Base -- base class for output backends
4              
5             # Author : Johan Vromans
6             # Created On : Mon Oct 3 08:13:17 2016
7             # Last Modified By: Johan Vromans
8             # Last Modified On: Thu Nov 1 21:08:55 2018
9             # Update Count : 32
10             # Status : Unknown, Use with caution!
11              
12             ################ Common stuff ################
13              
14 6     6   2448 use strict;
  6         15  
  6         177  
15 6     6   31 use warnings;
  6         10  
  6         146  
16 6     6   30 use Carp;
  6         11  
  6         286  
17 6     6   34 use utf8;
  6         21  
  6         31  
18              
19             package Data::iRealPro::Output::Base;
20              
21             sub new {
22 5     5 0 3501 my ( $pkg, $options ) = @_;
23              
24 5         28 my $self = bless( { variant => "irealpro" }, $pkg );
25              
26 5         13 for ( @{ $self->options } ) {
  5         24  
27 71 50       144 $self->{$_} = $options->{$_} if exists $options->{$_};
28             }
29              
30 5         22 return $self;
31             }
32              
33             sub options {
34             # The list of options this backend can handle.
35             # Note that 'output' is handled by Output.pm.
36 5     5 0 48 [ qw( trace debug verbose variant playlist catalog neatify select
37             musescore suppress-upbeat suppress-text override-alt condense
38             ) ]
39             }
40              
41             1;