File Coverage

blib/lib/ColorThemeBase/Base.pm
Criterion Covered Total %
statement 12 14 85.7
branch 1 2 50.0
condition n/a
subroutine 4 4 100.0
pod 0 2 0.0
total 17 22 77.2


line stmt bran cond sub pod time code
1             package ColorThemeBase::Base;
2              
3 7     7   356348 use strict 'subs', 'vars';
  7         22  
  7         390  
4             #use warnings;
5 7     7   43 use parent 'ColorThemeBase::Constructor';
  7         15  
  7         63  
6              
7             our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
8             our $DATE = '2024-07-17'; # DATE
9             our $DIST = 'ColorThemeBase-Static'; # DIST
10             our $VERSION = '0.009'; # VERSION
11              
12             sub get_struct {
13 1     1 0 12 my $self_or_class = shift;
14 1 50       5 if (ref $self_or_class) {
15 1         3 \%{"$self_or_class->{orig_class}::THEME"};
  1         6  
16             } else {
17 0         0 \%{"$self_or_class\::THEME"};
  0         0  
18             }
19             }
20              
21             sub get_args {
22 1     1 0 10 my $self = shift;
23 1         7 $self->{args};
24             }
25              
26             1;
27             # ABSTRACT: A suitable base class for all ColorTheme::* modules
28              
29             __END__