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 8     8   3185 use strict;
  8         20  
  8         223  
15 8     8   41 use warnings;
  8         17  
  8         178  
16 8     8   39 use Carp;
  8         15  
  8         364  
17 8     8   44 use utf8;
  8         15  
  8         33  
18              
19             package Data::iRealPro::Output::Base;
20              
21             sub new {
22 7     7 0 4395 my ( $pkg, $options ) = @_;
23              
24 7         32 my $self = bless( { variant => "irealpro" }, $pkg );
25              
26 7         19 for ( @{ $self->options } ) {
  7         35  
27 99 50       190 $self->{$_} = $options->{$_} if exists $options->{$_};
28             }
29              
30 7         27 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 7     7 0 62 [ qw( trace debug verbose variant playlist catalog neatify select
37             musescore suppress-upbeat suppress-text override-alt condense
38             ) ]
39             }
40              
41             1;